remove

remove(value: MemberType) updating;

The remove method of the Set class removes the object specified in the value parameter from a set; for example:

goodCustomers.remove(cust);

If the set does not contain the specified object, an exception is raised.