PASSWORD RESET

Your destination for complete Tech news

How to delete everything in Redis?

441 0
< 1 min read

To delete everything in Redis, you can use the “FLUSHALL” command. This command will remove all keys from all databases in the Redis instance.

You can run the command in the redis-cli by typing:

$ redis-cli FLUSHALL

or in python redis library

import redis
r = redis.Redis()
r.flushall()

Please be careful when using this command, as it will permanently delete all data stored in Redis.

Leave A Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.