Updated on 2024-11-27 GMT+08:00

Deleting RabbitMQ Virtual Hosts

This section describes how to delete virtual hosts. Deleting a virtual host removes all its resources including exchanges and queues permanently.

Methods of deleting virtual hosts:

Deleting Virtual Hosts (Console)

  1. Log in to the console.
  2. In the upper left corner, click and select a region.

    Select the region where your RabbitMQ instance is.

  3. Click and choose Application > Distributed Message Service for RabbitMQ to open the console of DMS for RabbitMQ.
  4. Click an instance name to go to the instance details page.
  5. In the navigation pane, choose Virtual Hosts.
  6. 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.
    • The default virtual host created in instance creation cannot be deleted.
    • Deleting a virtual host removes all its resources including exchanges and queues permanently.

  7. In the displayed dialog box, click OK.

Deleting Virtual Hosts (RabbitMQ Management UI)

  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

  6. Click OK.