简体   繁体   中英

Delete Queues and Exchanges on RabbitMQ with HTTP API

I'have a question, I want to delete Queues and Exchanges on RabbitMQ with Curl and HTTP API.

I wanna use 2 options --if-empty=true and --if-unused=true .

but when I use it with curl, I have a error.

kalenas@localhost:~$ curl -XDELETE ${RABBIT_URL}/api/queues/<scope>/<queue> --if-empty=true --if-unused=true;
curl: option --if-empty=true: is unknown
curl: try 'curl --help' or 'curl --manual' for more information

Have you a idea?

Use

curl -XDELETE $RABBIT_URL/api/queues/$VHOST/<queue> -G -d 'if-empty=true' -d 'if-empty=true'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM