Bootstrap FreeKB - RabbitMQ - Delete Exchange using the rabbitmqadmin command
RabbitMQ - Delete Exchange using the rabbitmqadmin command

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



Comments


Add a Comment


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