Message Queue for RabbitMQ limits the number of exchanges for each instance. If you no longer need to use an exchange, you can delete the exchange in the Message Queue for RabbitMQ console.

Background information

An exchange is used to route a message received from a producer to one or more queues or discard the message. The exchange routes a message to queues based on the routing key and binding keys. Different types of exchanges have different routing rules. For more information, see Exchanges.
Notice You cannot delete the three built-in exchanges in a vhost. These exchanges include amq.direct, amq.topic, and amq.fanout.

Procedure

  1. Log on to the Message Queue for RabbitMQ console.
  2. In the Resource Distribution section of the Overview page, select the region where your instance is located.
  3. On the Instances page, click the name of your instance.
  4. In the left-side navigation pane, click Exchanges.
  5. On the Exchanges page, click the drop-down arrow next to vhost. From the Change drop-down list, select the vhost from which you want to delete one or more exchanges. Then, delete exchanges by using one of the following methods:
    • Delete a single exchange

      Find the exchange that you want to delete, click More in the Actions column, and then select Delete.

    • Delete multiple exchanges

      Select the exchanges that you want to delete and click Batch Delete below the exchange list.

  6. In the Note message, read the note and click OK.