RabbitMQ HTTP API - Purge based on queue

32 views
Skip to first unread message

cw storm

unread,
Nov 12, 2015, 10:58:34 PM11/12/15
to rabbitm...@googlegroups.com
I'm wondering if it's possible to purge all messages based on certain
queue names using rabbitmq http api service. If not, maybe writing a
shell script using rabbitmqadmin command line perhaps? Any suggestion
or recommendation is greatly appreciated it.

Thanks,
Phil

Gabriele Santomaggio

unread,
Nov 13, 2015, 1:38:51 AM11/13/15
to rabbitmq-users

With rabbitmqadmin.py:

./rabbitmqadmin.py purge queue name=your_queue

using the HTTP API (use DELETE Method not GET):
http://localhost:15672/api/queues/%2f/your_queue/contents


Gabriele
Reply all
Reply to author
Forward
0 new messages