Help Center/ Distributed Message Service for Kafka/ User Guide/ Managing Consumer Groups/ Unsubscribing a Kafka Consumer Group from a Topic
Updated on 2025-08-21 GMT+08:00

Unsubscribing a Kafka Consumer Group from a Topic

The consumption progress in a topic can be viewed on the consumer group details page. When a consumer no longer consumes a topic, unsubscribing the consumer group from the topic can prevent false alarms caused by topic message accumulation.

Notes and Constraints

  • This function may not be available for existing Kafka 1.1.0 or 2.3.0 instances. In this case, you can upgrade the instance kernel.
  • This function will permanently delete the consumer offset in the topic. Exercise caution.

Procedure

  1. Log in to the Kafka console.
  2. Click in the upper left corner to select the region where your instance is located.
  3. Click the desired instance to go to the instance details page.
  4. In the navigation pane, choose Instance > Consumer Groups.
  5. Click the name of the desired consumer group.
  6. On the Consumer Offset tab page, select the topics to be unsubscribed, and click Unsubscribe on the upper left side. Up to 50 topics can be selected at a time.
  7. In the Unsubscribe dialog box, click Yes.

    Unsubscribed topics are no longer displayed on the Consumer Offset tab page.