What's new in Valkey 9.0? Discover new features and improvements. Read the announcement.

XGROUP DESTROY

Destroys a consumer group.

Usage
XGROUP DESTROY key group
Complexity
O(N) where N is the number of entries in the group's pending entries list (PEL).
Since
5.0.0
ACL Categories
@slow, @stream, @write
Command flags
WRITE

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.

Replies

RESP2

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

RESP3

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