Redis DEL command
Redis DEL command to delete the existing key. Nonexistent key will be ignored.
grammar
redis DEL command basic syntax is as follows:
redis 127.0.0.1:6379> DEL KEY_NAME
Available versions
> = 1.0.0
return value
The number is deleted key.
Examples
First, we create a key and set the value in redis.
redis 127.0.0.1:6379> SET w3ckey redis OK
Now we have created a delete key.
redis 127.0.0.1:6379> DEL w3ckey (integer) 1