Skip to content

Instantly share code, notes, and snippets.

@samchrisinger
Created May 20, 2015 14:38
Show Gist options
  • Save samchrisinger/b1171abef9c89e2b14c2 to your computer and use it in GitHub Desktop.
Save samchrisinger/b1171abef9c89e2b14c2 to your computer and use it in GitHub Desktop.
Flush rabbitmq queues
#!/bin/bash
# from http://davidsj.co.uk/blog/delete-queues-in-rabbitmq/
for queue in `rabbitmqadmin -f bash list queues`; do echo $queue `rabbitmqadmin delete queue name=$queue`; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment