How to - purge a rabbitmq queue using curl

Viewed 2060

I am checking is there way to purge a rabbitmq queue using curl ? I know using command line, but I am in need of something using curl?

Suggestions/help appreciated

Note : - with this link , I did not get exact curl command to be used

2 Answers

this is the rabbit according to rabbit api documents;

curl -i -u guest:guest -H "content-type:application/json" -XDELETE http://localhost:15672/api/queues/%2F/yourQueueName/contents
Related