Redis DEL – How to delete a key from redis datastore
2 months 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 :-
redis host:post> DEL <key name>
(integer) 1 if key is deleted (integer) 0 if key does not exists
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.