How to Delete All Queues from RabbitMQ in Bash

Posted on

delete all queues from a RabbitMQ instance sudo rabbitmqctl list_queues | awk ‘{print $1}’ | xargs -I qn amqp-delete-queue –queue=qn –url=amqp://user:passwd@host.com:5672 source: Stack Overflow tested with RabbitMQ 3.5.3 on Ubuntu 14.04.2 ​