remove
Removes the association for key, if one exists.
Removing an existing key decreases size and invalidates iterators. An absent key leaves the map unchanged. A null result can also mean that a null value was removed.
Return
the removed value, or null when the key was absent.
Parameters
key
key whose association should be removed.