Back to Redis

XGROUP DESTROY

content/commands/xgroup-destroy.md

latest1.0 KB
Original Source

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.

Redis Software and Redis Cloud compatibility

| Redis Software | Redis Cloud | <span style="min-width: 9em; display: table-cell">Notes</span> | |:----------------------|:-----------------|:------| | <span title="Supported">✅ Standard</span> <span title="Supported"><nobr>✅ Active-Active</nobr></span> | <span title="Supported">✅ Standard</span> <span title="Supported"><nobr>✅ Active-Active</nobr></span> | |

Return information

{{< multitabs id="xgroup-destroy-return-info" tab1="RESP2" tab2="RESP3" >}}

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

-tab-sep-

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

{{< /multitabs >}}