[rabbitmq-discuss] How remove messages which must be ack

Michael Klishin mklishin at gopivotal.com
Fri Jan 17 14:19:15 GMT 2014

On 17 Jan 2014, at 18:10, rabbit15 <bison_art at o2.pl> wrote:

> There is existing, working Rabbit environment with queues, exchanges,
> producers and consumers working. What I need is to clear every queue (delete
> ack'ed and unack'ed messages). I have no acces to existing consumers
> objects, hovewer i could create new one just for this purpose. Current
> consumers should be not disturbed and after clear, whole environment should
> work as previously. The main problem is, that Purge method does not delete
> messages, which awaits for acknowledments. I want to be sure, that EVERY
> message is already deleted.
> Is there any way to perform such operation?

You cannot remove messages that are unacknowledged.

You can forcefully close their connections, which will cause messages to be requeued,
the purge the queue.


Software Engineer, Pivotal/RabbitMQ

More information about the rabbitmq-discuss mailing list