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?
For software developer use below code.
channel.purgeQueue(queue-name);
if we use this code the Queue will be clear and same queue will exist.