Deletes the key and returns nil when the delete method is called