remove

fun remove(key: K): V?

Removes the entry for key and returns its value, or returns null if the key is absent.