Skip to content

DEL

DEL key [key ...]

DEL deletes all the specified keys and returns the number of keys deleted on success.

If the key does not exist, it is ignored. The command returns the number of keys successfully deleted.

localhost:7379> SET k1 v1
OK
localhost:7379> SET k2 v2
OK
localhost:7379> DEL k1 k2 k3
OK 2