Redis DEL – How to delete a key from redis datastore
5 years ago Lalit Bhagtani 0
In this tutorial, we will learn about how to delete a key in redis datastore by using a COMMAND – DEL in redis-cli. The syntax of redis DEL command is as follows :-
Syntax :-
redis host:post> DEL <key name>
Output :-
(integer) 1 if key is deleted (integer) 0 if key does not exists
Example :-
References :-
That’s all for how to delete a key from redis datastore. If you liked it, please share your thoughts in comments section and share it with others too.