Updated on 2024-09-20 GMT+08:00

Deleting a RocketMQ Topic

If a topic is no longer used, you can delete it to release resources by referring to this section.

Topics can be deleted only when the instance is in the Running state.

Prerequisites

  • A RocketMQ instance has been purchased.
  • A topic has been created.

Deleting a Topic

  1. Log in to the console.
  2. Click in the upper left corner to select a region.

    Select the region where your RocketMQ instance is located.

  3. Click and choose Middleware > Distributed Message Service for RocketMQ to open the console of DMS for RocketMQ.
  4. Click a RocketMQ instance to go to the instance details page.
  5. In the navigation pane, choose Topics.
  6. Delete topics in any of the following ways:

    • RocketMQ 4.8.0: In the row containing the desired topic, choose More > Delete. RocketMQ 5.x: In the row containing the desired topic, click Delete.
    • Click a topic to go to the topic details page and then click Delete in the upper right corner.
    • To delete multiple topics at a time, select the topics, and click Delete Topic above the topic list.

    Exercise caution when deleting topics because data will be lost.

  7. Click OK.