Deleting a Kafka Consumer Group

You can delete a consumer group in either of the following ways:

Constraints

Prerequisites

The status of the consumer group to be deleted is EMPTY.

Method 1: Deleting a Consumer Group on the Console

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

    Select the region where your Kafka instance is located.

  3. Click Service List and choose Application > Distributed Message Service. The Kafka instance list is displayed.
  4. Click the desired Kafka instance to view the instance details.
  5. In the navigation pane, choose the Consumer Groups tab.
  6. Delete consumer groups using either of the following methods:

    • Select one or more consumer groups and click Delete Consumer Group above the consumer group list.
    • In the row containing the consumer group you want to delete, click Delete.

    A consumer group can be deleted only when its status is EMPTY.

    Consumer group statuses include:

    • DEAD: The consumer group has no member or metadata.
    • EMPTY: The consumer group has metadata but has no member.
    • PREPARING_REBALANCE: The consumer group is to be rebalanced.
    • COMPLETING_REBALANCE: All members have joined the consumer group.
    • STABLE: Members in the consumer group can consume messages normally.

  7. In the displayed Delete Consumer Group dialog box, click OK.

Method 2: Using the CLI to Delete a Consumer Group

The following uses Linux as an example.