rabbitmq-server icon indicating copy to clipboard operation
rabbitmq-server copied to clipboard

Consider introducing a command that deletes all queues in a vhost

Open michaelklishin opened this issue 8 years ago • 1 comments

Can potentially be very dangerous but also occasionally useful. Suggested by @Gsantomaggio.

michaelklishin avatar Dec 06 '16 16:12 michaelklishin

This is the way:

for vh in $(rabbitmqctl list_vhosts -s); do  for q in $(rabbitmqctl list_queues name -s --vhost $vh) ; do rabbitmqctl delete_queue --vhost  $vh $q; done done

I added other rabbitmqctl commands here

it is open for a while, can we close it? @michaelklishin

Gsantomaggio avatar Sep 08 '21 16:09 Gsantomaggio