RabbitMQ - Delete Exchange using the rabbitmqadmin command

by
Jeremy Canfield |
Updated: November 20 2020
| RabbitMQ articles
This assumes you have downloaded and setup the rabbitmqadmin command line tool.
Before deleting an exchange, you will probably want to use the rabbitmqctl list_bindings command to determine if the exchange is bound to any queues, and if so, to remove the bindings.
delete exchange can be used to delete an exchange. In this example, an exchange named exchange001 is deleted.
rabbitmqadmin delete exchange --vhost=/ name='exchange001'
If the exchange is deleted, the following should be returned.
exchange deleted
Did you find this article helpful?
If so, consider buying me a coffee over at