Skip to content

Instantly share code, notes, and snippets.

@bvicenzo
Created March 8, 2018 14:32
Show Gist options
  • Save bvicenzo/4fd540354846218173c1c8346d47841f to your computer and use it in GitHub Desktop.
Save bvicenzo/4fd540354846218173c1c8346d47841f to your computer and use it in GitHub Desktop.
#!/bin/bash
function clear_rabbitmq_queues {
rabbitmqadmin -f tsv -q list queues name | while read queue; do rabbitmqadmin -q delete queue name=${queue}; done
}
@bvicenzo
Copy link
Author

bvicenzo commented Mar 8, 2018

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.

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