How to remove specific message from queue in rabbitmq

Viewed 5769

I use rabbitmq. I created a queue and put 10 messages here.

I want to delete only specific one of 10 messages here. Is there a way to delete it?

1 Answers

No, there is no way to do that directly. Some alternatives are:

  1. Purge the queue and add back the 9 other messages
  2. Check for that one message on the consumer side and reject/ignore that message
  3. Forward all the messages to another queue, except for that 1 message
Related