Skip to main content

XGROUP DESTROY

Syntax

XGROUP DESTROY key group

ACL categories: @write, @stream, @slow

Time complexity: O(N) where N is the number of entries in the group's pending entries list (PEL).

XGROUP DESTROY destroys a consumer group entirely.

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.

Return

Integer reply: the number of destroyed consumer groups (0 or 1)