CLUSTER-FLUSHSLOTS(3valkey)
π CLUSTER-FLUSHSLOTS β bestie edition
ok so like, this is the Valkey Command Manual page for CLUSTER-FLUSHSLOTS, and babes, it is a short one. Enjoy it while it lasts, because the SEE ALSO list at the bottom is a whole novel. π
β¨ NAME β¨
cluster-flushslots β deletes all slots information from a node. yes. all of it. gone. π
πΈ SYNOPSIS πΈ
CLUSTER FLUSHSLOTS
that's it. that's the whole vibe. no args, no options, no drama (well, some drama, see below).
π¦ DESCRIPTION π¦
So CLUSTER FLUSHSLOTS deletes all slots from a node, bestie. Not some of them. All of them.
More specifically: CLUSTER FLUSHSLOTS deletes all information about slots from the connected node.
β οΈ and here's the catch, the receipts, the fine print: it can only be called when the database is empty. Like, empty-empty. If your db has keys in it, this command is simply not going to happen for you. no cap.
π REPLY π
valkey-protocol(7) Simple string reply: OK.
she says OK and she means it. slay. β¨
π COMPLEXITY π
constant time, iconic behavior, zero notes. π
π₯ ACL CATEGORIES π₯
@admin@dangerous@slow
yeah she's in the dangerous club. she's in the admin club. she's also tagged slow?? for an O(1) command?? we don't ask questions, we just report the facts. π«Ά
π§ HISTORY π§
- Available since:
3.0.0
an elder. a legend. a founding mother of the cluster era. π
π SEE ALSO π
the group chat, in full, alphabetically-ish, every single one of them, iykyk:
asking(3valkey)cluster(3valkey)cluster-addslots(3valkey)cluster-addslotsrange(3valkey)cluster-bumpepoch(3valkey)cluster-cancelslotmigrations(3valkey)cluster-count-failure-reports(3valkey)cluster-countkeysinslot(3valkey)cluster-delslots(3valkey)cluster-delslotsrange(3valkey)cluster-failover(3valkey)cluster-forget(3valkey)cluster-getkeysinslot(3valkey)cluster-getslotmigrations(3valkey)cluster-help(3valkey)cluster-info(3valkey)cluster-keyslot(3valkey)cluster-links(3valkey)cluster-meet(3valkey)cluster-migrateslots(3valkey)cluster-myid(3valkey)cluster-myshardid(3valkey)cluster-nodes(3valkey)cluster-replicas(3valkey)cluster-replicate(3valkey)cluster-reset(3valkey)cluster-saveconfig(3valkey)cluster-set-config-epoch(3valkey)cluster-setslot(3valkey)cluster-shards(3valkey)cluster-slot-stats(3valkey)cluster-slots(3valkey)cluster-syncslots(3valkey)readonly(3valkey)readwrite(3valkey)
mwah π that's the page. go forth and flush responsibly.
version 9.0.0, dated 2025-10-21, and yes this whole thing lives under CLUSTER-FLUSHSLOTS(3valkey) β bye bestie, love u, don't run this on a database that isn't empty! πβ¨
π¦ where this page comes from
- fedora 44: valkey-doc 9.0.3-2.fc44 Β· CC-BY-SA-4.0
- fedora 44: valkey-doc 9.0.6-1.fc44 Β· CC-BY-SA-4.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms