Revert "update and delete by key"

This reverts commit 58b265bede31a882dd947c10bb6522adf25d7957.