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 based on the routing key and binding keys or discard the message. Different types of exchanges have different routing rules. For more information, see Exchange.
Notice You cannot delete the built-in exchanges amq.direct, amq.topic, and amq.fanout.

Procedure

  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 Exchanges.
  4. On the Exchanges page, select an instance and a vhost and delete exchanges based on your requirements.
    • Delete a single exchange

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

    • Delete multiple exchanges

      Select the exchanges that you want to delete and click Batch Delete Exchanges.

  5. In the Tips message, click OK.