I want to delete all keys. I want everything wiped out and give me a blank database.
Is there a way to do this in Redis client?
I want to delete all keys. I want everything wiped out and give me a blank database.
Is there a way to do this in Redis client?
i think sometimes stop the redis-server and delete rdb,aof files。 make sure there’s no data can be reloading. then start the redis-server,now it's new and empty.
Open redis-cli and type:
Use FLUSHALL ASYNC if using (Redis 4.0.0 or greater) else FLUSHALL
https://redis.io/commands/flushall
If you're using the redis-rb gem then you can simply call:
You can use FLUSHALL which will delete all keys from your every database. Where as FLUSHDB will delete all keys from our current database.