This shows you the differences between two versions of the page.

Link to this comparison view

en:ressources:astuces:rabbitmq [2013/10/23 14:33] (current)
Line 1: Line 1:
 +====== 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 14:33 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0