Skip to content

Instantly share code, notes, and snippets.

@branonbarrett
Created February 6, 2015 03:12
Show Gist options
  • Save branonbarrett/94b6f0232b7bb98953d5 to your computer and use it in GitHub Desktop.
Save branonbarrett/94b6f0232b7bb98953d5 to your computer and use it in GitHub Desktop.
from pyrabbit.api import Client
username = 'guest'
password = 'guest'
cl = Client('localhost:15672', username, password)
queues = [q['name'] for q in cl.get_queues()]
for q in queues:
#if q.startswith('Dispatch.259'):
print ('deleting...' + q)
cl.delete_queue('/', q)
@branonbarrett
Copy link
Author

To run this script you will need to install pyrabbit. You can do that using command: pip install pyrabbit

If you don't have pip check here for intallation instructions: https://pip.pypa.io/en/latest/installing.html

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