DeleteCases

WMA link


DeleteCases[list, pattern]

returns the elements of list that do not match pattern.

DeleteCases[list, pattern, levelspec]

removes all parts of list on levels specified by levelspec that match pattern (not fully implemented).

DeleteCases[list, pattern, levelspec, n]

removes the first n parts of list that match pattern.

Delete
Drop