Skip to content

Ask the HotKV docs

Answers come only from these docs and can be wrong; check the linked pages before you rely on them.

FLUSHALL

Last updated
FLUSHALL [ASYNC | SYNC]
Group
Server
Complexity
O(N) where N is the total number of keys
Arity
-1 (at least 1 words, counting the command name)
Flags
write
HotKV Cloud
All plans
On-Premise
no license needed

FLUSHALL deletes every key in every database and all tags. It also deletes the entries held by HotKV’s AI features, such as prompt and semantic cache entries, so the server is left empty. Configuration-like data shared by the cluster, such as model prices and tenants, is kept. Like any write, it is sent to replicas and written to the append-only file. There is no undo.

Option Effect
ASYNC Accepted. The data is deleted before the reply, as with SYNC.
SYNC Delete the data before replying.
Case Reply (RESP2 and RESP3)
Flushed Simple string OK
Any other argument Error ERR syntax error
127.0.0.1:6379> FLUSHALL
OK
127.0.0.1:6379> INFO keyspace
# Keyspace

In HotKV Cloud, the CLI tab of the panel does not run FLUSHALL. Send it from your own client connection.

Same as Redis 7 and Valkey 8, except that ASYNC does not defer freeing memory to the background. Clearing the AI feature data matches what FLUSHALL does to module data in Redis.

FLUSHDB, SWAPDB, INFO