Flush a single Redis database (FLUSHDB)
clear redis cache for one website | delete redis database | run redis flushdb | redis | redis-cli | cache | flushWarning, destructive. This command deletes, overwrites or changes data in a way that cannot easily be undone. Check every placeholder carefully and make a backup first.
redis-cli -n 0 FLUSHDBImmediately removes all keys of the database selected with -n, without asking for confirmation. Unlike FLUSHALL, only the data of this one database number is affected. Check beforehand with redis-cli INFO keyspace which number belongs to which application.
Note: If the database holds not only cache data but also PHP sessions or queues, those are lost for good. For a single WordPress site, wp cache flush is the gentler option.
Also searched as
- clear redis cache for one website
- delete redis database
- run redis flushdb