How to delete all keys from Redis

This tutorial explains the ways to remove all keys from Redis.

To delete all keys from all Redis database,

#redis-cli FLUSHALL

To delete all keys from specified Redis database,

#redis-cli -n <database_number> FLUSHDB

Here we need to specify the database_number with the required database.

That's all…

Leave a Reply

Your email address will not be published. Required fields are marked *