XGROUP DESTROY · Valkey

XGROUP DESTROY

Destroys a consumer group.

Usage

XGROUP DESTROY key group

Description

The XGROUP DESTROY command completely destroys a consumer group.

The consumer group will be destroyed even if there are active consumers, and pending messages, so make sure to call this command only when really needed.

Reply

Integer reply: the number of destroyed consumer groups, either 0 or 1.

Complexity

O(N) where N is the number of entries in the group’s pending entries list (PEL).

ACL Categories

@slow @stream @write

History

See also

XACK, XADD, XAUTOCLAIM, XCLAIM, XDEL, XGROUP, XGROUP CREATE, XGROUP CREATECONSUMER, XGROUP DELCONSUMER, XGROUP HELP, XGROUP SETID, XINFO, XINFO CONSUMERS, XINFO GROUPS, XINFO HELP, XINFO STREAM, XLEN, XPENDING, XRANGE, XREAD, XREADGROUP, XREVRANGE, XSETID, XTRIM.