Created
March 8, 2018 14:32
-
-
Save bvicenzo/4fd540354846218173c1c8346d47841f to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
function clear_rabbitmq_queues { | |
rabbitmqadmin -f tsv -q list queues name | while read queue; do rabbitmqadmin -q delete queue name=${queue}; done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Put this funcion in your bash or profile file
reload the (or open a new) terminal.
And call the function:
clear_rabbitmq_queues
Since your rabbitmq server is up.