Updated on 2025-07-14 GMT+08:00

Deleting RabbitMQ Virtual Hosts

This section describes how to delete virtual hosts. Methods of deleting virtual hosts:

Notes and Constraints

  • The default virtual host created in instance creation cannot be deleted.
  • Deleting a virtual host removes all its resources including exchanges and queues permanently.
  • Available on the console and management UI for RabbitMQ 3.x.x, and only on the console for RabbitMQ AMQP-0-9-1.

Procedure

The following describes how to delete a virtual host.

  1. Log in to the RabbitMQ console.
  2. Click in the upper left corner to select the region where your instance is located.
  3. Click an instance name to go to the instance details page.
  4. In the navigation pane, choose Instance > Virtual Hosts.
  5. Delete virtual hosts in any of the following ways:

    • Select one or more virtual hosts and click Delete Virtual Host in the upper left corner.
    • In the row containing the desired virtual host, click Delete.
    • Click a virtual host name. The virtual host details page is displayed. Click Delete in the upper right corner.

    Deleting a virtual host removes all its resources including exchanges and queues permanently.

  6. In the displayed dialog box, click OK.

    This virtual host is deleted when it is removed from the virtual host list.

  1. Log in to the RabbitMQ management UI.
  2. On the top navigation bar, choose Admin.
  3. In the navigation tree on the right, choose Virtual Hosts.

    Figure 1 Virtual Hosts page

  4. Click the name of the virtual host to be deleted.

    Figure 2 Virtual host to be deleted

  5. In the Delete this vhost area, click Delete this virtual host. A confirmation dialog box is displayed.

    Figure 3 Deleting a virtual host

    Deleting a virtual host removes all its resources including exchanges and queues permanently.

  6. Click OK.

    This virtual host is deleted when it is removed from the All virtual hosts area on the Virtual Hosts page.

Related Document

To delete a virtual host by calling an API, see Deleting Specified Virtual Hosts in Batches.