Simplified Common Lisp reference
Symbol class: Sequences (Lists, Strings) and Arrays
Symbol type: function
removeitemseqfrom-end(keyword)test(keyword)test-not(keyword)start(keyword)end(keyword)count(keyword)key(keyword) => sequence
Argument description:
item an object
seq a sequence
from-end boolean specifying processing direction
test equality test
test-not non-equality test
start bounding index, default 0
end bounding index, default nil
count integer for how many elements to remove, or nil
key function of one argument

REMOVE make new sequence of the same type that has some elements removed. COUNT may limit the number of removed elements. See also REMOVE-IF, DELETE, DELETE-IF, SUBSEQ, and REMOVE-DUPLICATES.

(remove #\s "Sample string sequence") => "Sample tring equence"
(remove #\s "Sample string sequence" :count 1) => "Sample tring sequence"
(remove #\s "Sample string sequence" :test #'char-equal) => "ample tring equence"
(remove nil '(1 2 nil 4 nil 6)) => (1 2 4 6)
Function indexFull documentation for remove (HyperSpec)