CLUSTER-FLUSHSLOTS(3valkey)

πŸ“¦
version 9.0.6 Β· 2 versions
, in fedora 44

πŸ’… 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 πŸ‘‘

O(1)

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:


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