XGROUP-DESTROY(3valkey)
π XGROUP-DESTROY β it's giving "bye bye consumer group" π
okay bestie, this one lives in the Valkey Command Manual and it's literally called XGROUP-DESTROY, section 3valkey. buckle up π
β¨ NAME β¨
xgroup-destroy β destroys a consumer group. that's it. that's the whole job. π¦
β¨ SYNOPSIS β¨
XGROUP DESTROY key group
β¨ DESCRIPTION β¨
so the XGROUP DESTROY command completely destroys a consumer group. not "kind of", not "softly", not "we'll talk about it later" β completely. π
and the tea is: the consumer group gets destroyed even if there are active consumers, and even if there are pending messages still hanging around. so please, only call this command when you really truly need it, okay? this is not a "whoops lol" kind of command, this is a "main character makes a decision" kind of command. π
β οΈ no cap β active consumers + pending messages do not save the group. they all get taken out with it. make sure you actually want that.
β¨ REPLY β¨
valkey-protocol(7) Integer reply: the number of destroyed consumer groups, either 0 or 1. so you get a lil number back and it's telling you if the group was actually yeeted or not. πΈ
β¨ COMPLEXITY β¨
O(N) where N is the number of entries in the group's pending entries list (PEL). π§
β¨ ACL CATEGORIES β¨
@slow @stream @write
β¨ HISTORY β¨
- Available since:
5.0.0β
β¨ SEE ALSO β¨
xack(3valkey), xadd(3valkey), xautoclaim(3valkey), xclaim(3valkey), xdel(3valkey), xgroup(3valkey), xgroup-create(3valkey), xgroup-createconsumer(3valkey), xgroup-delconsumer(3valkey), xgroup-help(3valkey), xgroup-setid(3valkey), xinfo(3valkey), xinfo-consumers(3valkey), xinfo-groups(3valkey), xinfo-help(3valkey), xinfo-stream(3valkey), xlen(3valkey), xpending(3valkey), xrange(3valkey), xread(3valkey), xreadgroup(3valkey), xrevrange(3valkey), xsetid(3valkey), xtrim(3valkey) π
okay that's the whole page bestie, you ate it, go destroy some consumer groups responsibly π«Ά
version 9.0.0, dated 2025-10-21 β slay, periodt, iykyk β¨ππ¦
π¦ 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