bool remove(Object element)

Removes value from the set. Returns true if value was in the set. Returns false otherwise. The method has no effect if value value was not in the set.

Source

bool remove(Object element);