redis-cli FLUSHALL ASYNC

Category: Databases & SQL

redis-cli FLUSHALL ASYNC

Delete all keys in every database

Removes every key on the server instantly; ASYNC defers the work to a background thread so the server stays responsive, but the data is still gone. There is no undo, so this is a last resort or a fresh-environment step.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.