Created
February 6, 2015 03:12
-
-
Save branonbarrett/94b6f0232b7bb98953d5 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
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) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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