w3resource logo

Redis Tutorial

Redis Keys: DEL

Secondary Nav

DEL Keys

The Redis DEL command is used to remove the specified keys. A key is ignored if it does not exist.



Available since


Return Value

Integer Reply : Number of keys that were removed.

Return Value Type


Example : Redis DEL

First, create a key in redis and set some value in it. and then delete the created keys.> SET key "Good"
OK> SET key1 "Morning"
OK> DEL key key1 key2
(integer) 2

Join our Question Answer community to learn and share your programming knowledge.

Help the community:

PHP: Loop

JavaScript: Delete duplicates in an array

Oracle: Round the number