XGROUP DELCONSUMER

XGROUP DELCONSUMER key group consumer
Available since:
Redis Open Source 5.0.0
Time complexity:
O(1)
ACL categories:
@write, @stream, @slow,
Compatibility:
Redis Software and Redis Cloud compatibility

The XGROUP DELCONSUMER command deletes a consumer from the consumer group.

Sometimes it may be useful to remove old consumers since they are no longer used.

Note, however, that any pending messages that the consumer had will become unclaimable after it was deleted. It is strongly recommended, therefore, that any pending messages are claimed or acknowledged prior to deleting the consumer from the group.

Required arguments

key

The stream key.

group

The consumer group name.

consumer

The name of the consumer to delete.

Redis Software and Redis Cloud compatibility

Redis
Software
Redis
Cloud
Notes
✅ Standard
✅ Active-Active
✅ Standard
✅ Active-Active

Return information

Integer reply: the number of pending messages the consumer had before it was deleted.
RATE THIS PAGE
Back to top ↑