Message Queue for RabbitMQ limits the number of vhosts. If you no longer need to use a vhost, you can delete the vhost in the Message Queue for RabbitMQ console.


The exchanges and queues under the vhost that you want to delete are deleted. For more information, see the following topics:
  • Delete an exchange
    Notice You cannot delete the three built-in exchanges under a vhost. These exchanges do not affect the deletion of the vhost.
  • Delete a queue

Background information

A vhost refers to a virtual host that is used to logically isolate resources. vhosts manage their own exchanges, queues, and bindings. Applications securely run on independent vhosts so that the business of an application is not affected by other applications. An instance can have multiple vhosts, and a vhost can have multiple exchanges and queues. To connect a producer or consumer to Message Queue for RabbitMQ, you must specify a vhost for the producer or consumer.


  1. Log on to the Message Queue for RabbitMQ console.
  2. In the top navigation bar, select the region where your instance resides.
  3. In the left-side navigation pane, click vhosts.
  4. On the vhosts page, select an instance and delete vhosts based on your requirements.
    • Delete a single vhost

      Find the vhost that you want to delete and click Delete in the Actions column.

    • Delete multiple vhosts

      Select the vhosts that you want to delete and click Batch Delete vhosts in the lower part of the page.

  5. In the Tips message, click OK.