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?
Log in to the Management Web UI. For details, see Connecting to the Management Address of a RabbitMQ Instance. On the Queues tab page, click the name of a queue. Click Purge Messages to remove messages from the queue.
RabbitMQ Unacked Messages are the messages that are not Acknowledged. If a consumer fails to acknowledge messages, the RabbitMQ will keep sending new messages until the prefetch value set for the associated channel is equal to the number of RabbitMQ Unacked Messages count.
A queue can be purged from the RabbitMQ Management Interface. Click the Queue tab and go to the bottom of the page. You will find a dropdown "Delete / Purge" there. Press Purge to the right to empty the queue.
Close the channel that the unacked messages reside on, which will nack them back into the queue, then call purge.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With