RabbitMQ - Delete Exchange using the rabbitmqadmin command

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 Buy Me A Coffee

Add a Comment

We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.

Please enter 7ee65 in the box below so that we can be sure you are a human.


Web design by yours truely - me, myself, and I   |   jeremy.canfield@freekb.net   |