Rabbitmq tips

Deleting queues

The command line can be used to list existing queues:

# rabbitmqctl list_queues

And the API can be used to delete them:

curl -i -u guest:guest -H "content-type:application/json" -XDELETE http://localhost:15672/api/queues/%2F/mig.keepalive

(where %2F is the name of the vhost, here “/”) Then a simple for loop does the job:

# for queue in $(rabbitmqctl list_queues|grep ^mig|awk '{print $1}');do echo "DELETING $queue"; curl -i -u guest:guest -H "content-type:application/json" -XDELETE http://localhost:15672/api/queues/%2F/$queue;done
en/ressources/astuces/rabbitmq.txt · Last modified: 2013/10/23 16:33 (external edit)
CC Attribution-Noncommercial-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0