Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider introducing a command that deletes all queues in a vhost #2629

Open
michaelklishin opened this issue Dec 6, 2016 · 1 comment
Open

Comments

@michaelklishin
Copy link
Member

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

@dcorbacho dcorbacho transferred this issue from rabbitmq/rabbitmq-cli Nov 17, 2020
@Gsantomaggio
Copy link
Member

Gsantomaggio commented Sep 8, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants