Last active
September 1, 2021 09:47
-
-
Save arbabnazar/d7c9e97ebffe5f0ba7d95a86fef5c433 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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