To remove a value from a set, use .delete() method:
.delete()
mySet.delete(some_val);
This function will return true if the value existed in the set and was removed, or false otherwise.
true
false