Redis Admin and redis-cli Cheat Sheet/Delete all keys in all DBs

Clear every logical database asynchronously.

Section: Server administration

Delete all keys in all DBs

bash
bash
FLUSHALL ASYNC

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Server administration
Delete all keys in current DB
Clear the selected database asynchronously.
OpenIn sheetbashsame section
Gracefully stop the server
Stop Redis and optionally save current state.
OpenIn sheetbashsame section
Read configuration values
Read current server configuration values.
OpenIn sheetbashsame section
Change a configuration value
Change a config value at runtime.
OpenIn sheetbashsame section
Rewrite config file
Persist runtime config changes back to redis.conf where possible.
OpenIn sheetbashsame section
Terminate a client
Disconnect a matching client connection.
OpenIn sheetbashsame section