d6llnw
Last Updated: February 25, 2016
·
3.646K
· 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

1995

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 ·
1996

Thank you.

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

over 1 year ago ·