implement DeleteKey and DeleteCollection