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?
You need to put messages back into the queue before you can purge them:
As an alternative, this doesn't require to wait:
If you want to clear the contents of the queue, then you can use the AMQP method queue.purge
: There is queue purge in AMQP: http://www.rabbitmq.com/amqp-0-9-1-reference.html#queue.purge
You could do similar using the management plugin.