Skip to content

Instantly share code, notes, and snippets.

@arbabnazar
Last active September 1, 2021 09:47
Show Gist options
  • Save arbabnazar/d7c9e97ebffe5f0ba7d95a86fef5c433 to your computer and use it in GitHub Desktop.
Save arbabnazar/d7c9e97ebffe5f0ba7d95a86fef5c433 to your computer and use it in GitHub Desktop.
#Get the list of all the queues
rabbitmqadmin -f tsv --vhost=/ --username=RABBITMQ_USER --password=RABBITMQ_PASSWORD -q list queues name > file.txt
#Remove all the queues
while read -r name; do rabbitmqadmin --vhost=/ --username=RABBITMQ_USER --password=RABBITMQ_PASSWORD -q delete queue name="${name}"; done < file.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment