Last Updated: February 25, 2016
·
4.831K
· dsci

Delete all keys from Redis

Some unix magic (that says it wasn't tested with Windows).

redis-cli KEYS "*" | xargs redis-cli DEL

2 Responses
Add your response

there are commands for that : FLUSHALL (all keys in all db), FLUSHDB (all keys in active db)

http://redis.io/commands/flushall
http://redis.io/commands/flushdb

over 1 year ago ·

Thank you.

It's always good to know to have several ways to a solution of a problem.

over 1 year ago ·