> ## Documentation Index
> Fetch the complete documentation index at: https://upstash-dx-3081-agentkit-tanstack-ai-backends.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# XGROUP DESTROY

> Delete an entire consumer group.

## Arguments

<ParamField body="key" type="str" required>
  The key of the stream.
</ParamField>

<ParamField body="group" type="str" required>
  The consumer group name to destroy.
</ParamField>

## Response

<ResponseField type="int">
  Returns 1 if the group was destroyed, 0 if it didn't exist.
</ResponseField>

<RequestExample>
  ```py Destroy existing group theme={null}
  result = redis.xgroup_destroy("mystream", "mygroup")
  ```
</RequestExample>


## Related topics

- [Overview](/redis/sdks/py/commands/overview.md)
- [XGROUP](/redis/commands/streams/xgroup.md)
- [XGROUP DELCONSUMER](/redis/sdks/py/commands/stream/xgroup_delconsumer.md)
- [XGROUP CREATE](/redis/sdks/py/commands/stream/xgroup_create.md)
