documenting delete_key_with_value function