RabbitMQ - purge a queue from all of its unacked messages

后端 未结 8 746
孤街浪徒
孤街浪徒 2020-12-29 03:03

I have thousands of unacked messages in my dev environment which I can\'t restart.
Is there a way to remove (purge) all messages even if they are unacknowledged?

8条回答
  •  一个人的身影
    2020-12-29 03:56

    Close the channel that the unacked messages reside on, which will nack them back into the queue, then call purge.

提交回复
热议问题