How to delete consumers of a stream in Redis?

Viewed 1631

I'm able to delete a Redis stream using 'del' command in Redis. I guess this will also delete the Consumer Groups/Consumers for that stream. However, I want to delete Consumers explicitly. Does Redis allow that ? If not, how to manage consumers which aren't in use anymore ?

1 Answers

Found the answer in docs, XGROUP allows deleting consumers in that group using DELCONSUMER:

XGROUP [CREATE key groupname id-or-$] [SETID key groupname id-or-$] [DESTROY key groupname] [DELCONSUMER key groupname consumername]

Related