Ruby hash-methods reference.
Remove a key-value pair from a hash and return the deleted value. Returns nil (or the result of an ifnone block) when the key is not found.