All Products
Search
Document Center

ApsaraMQ for Kafka:Why is a group stuck in the Deleting state?

Last Updated:Mar 11, 2026

ApsaraMQ for Kafka deletes groups asynchronously. A deletion typically completes in 1 to 2 minutes. If a group stays in the Deleting state longer than expected, active consumers are blocking the deletion.

Symptoms

After you delete a group on the Groups page in the ApsaraMQ for Kafka console, the group is in the Deleting state for a long time.

Deleting

Causes

A group cannot be deleted while either of the following conditions exists:

  • Active subscriptions. At least one consumer is still subscribed to a topic through this group. The broker cannot remove a group that has active subscriptions.

  • In-progress consumer offset commits. One or more consumer threads in the group are still committing consumer offsets. The broker waits for all offset commits to finish before it removes the group.

Solution

Step 1: Check for active subscriptions

  1. Log on to the ApsaraMQ for Kafka console.

  2. On the Groups page, locate the group that is stuck in the Deleting state.

  3. Check the subscription and consumer thread status. For more information, see View consumption details.

Step 2: Cancel the subscription and retry the deletion

  1. If the group subscribes to a topic, or any consumer thread is still committing consumer offsets, cancel the subscription.

  2. Wait for the active subscriptions to clear and the consumer offset commits to complete.

  3. Delete the group again from the Groups page.

If the group remains in the Deleting state after all consumers disconnect, retry the deletion from the Groups page.

Related topics