XGROUP-DELCONSUMER(3valkey)
π XGROUP-DELCONSUMER π
okay bestie, this one lives in the Valkey Command Manual and it's literally called xgroup-delconsumer β aka deletes a consumer from a consumer group. yes, we're doing spring cleaning on your streams. let's go π§Ήβ¨
β¨ SYNOPSIS β¨
XGROUP DELCONSUMER key group consumer
three little words and a whole consumer is gone. iconic. π
πΈ DESCRIPTION πΈ
so the XGROUP DELCONSUMER command deletes a consumer from the consumer group. that's it. that's the whole gig. π
sometimes it's genuinely useful to yeet old consumers, because bestie, they are simply no longer used. dead weight. ghost members. we don't need them in the group chat. π
β οΈ BUT WAIT. listen to me. not me being dramatic, this is real: any pending messages that the consumer had will become unclaimable after it was deleted. gone. poof. unclaimable forever. π
π so it is strongly recommended that any pending messages are claimed or acknowledged prior to deleting the consumer from the group. do the homework first, then delete. periodt. π«Ά
π REPLY π
valkey-protocol(7) Integer reply: the number of pending messages the consumer had before it was deleted. so it does tell you how much you're about to orphan. a little goodbye receipt. ππ
π¦ COMPLEXITY π¦
constant time. fast. no thoughts, just vibes. β‘
π 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-destroy(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, go forth and clean up your consumer groups responsibly π
signed, sealed, delivered from the Valkey Command Manual, version 9.0.0, dated 2025-10-21. mwah. π β¨π¦
π¦ 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