<a id="c3-manage-offsets-consumers"></a>

# Manage Offsets for Consumer Groups and Share Groups

You can reset [offsets](../_glossary.md#term-consumer-offset) for consumer groups and share groups. Offsets track the [position](../_glossary.md#term-offset-commit)
of a consumer in a partition. Each consumer instance in a consumer group or share group periodically commits its progress through the
partition with an offset. If a consumer instance fails, another instance in the group takes over and resumes from the
last committed offset.

You can reset or delete offsets in the **Consumer** and **Share Groups** tabs for your selected client.

![image](images/c3-reset-offsets.png)

You can reset offsets for troubleshooting, testing, and disaster recovery.

Considerations:
: - To reset offsets with Control Center, you must first empty the consumer group or share group by stopping
    any clients or consumers in the consumer group or share group.
  - To reset offsets with Control Center for a consumer group or share group that uses the Apache Kafka® `assign()`
    function to manually assign consumers to partitions, you must first locate and pause
    the consumer that is using the `assign()` function. Consumer groups and share groups that use the
    `assign()` function always appear empty to Control Center but they may hide unstopped consumers.
  - Don’t use Control Center to reset offsets for stream processing applications, which require
    special considerations for resets. For more information,
    see [Reset Kafka Streams Applications in Confluent Platform](/platform/current/streams/developer-guide/app-reset-tool.html#streams-developer-guide-app-reset).

## Prerequisites

To delete or reset offsets, you must have one of the following roles:

- `super.user`
- `SystemAdmin`
- `ClusterAdmin`

<a id="c3-reset-offsets-consumers"></a>

## Reset offsets for consumer groups

To reset offsets for consumer groups, use the following procedure.

**To reset an offset**

1. From **Clients**, select your cluster name.
2. Select **Consumers** and then select **Consumer Lag**. A list of consumer group IDs is displayed.
3. Select a consumer group ID. A list of clients and consumers is displayed.
4. Select the client or consumer you want to reset, or select all.
5. Select **Reset offset**. The **Reset offset** dialog appears.
6. In **Reset offset**, choose one of the following and then select **Reset**:
   - **Earliest** to set the offset to the earliest offset available for the topic and partition.
   - **Latest** to set the offset to the latest offset available for the topic and partition.
   - **Offset value** and add a value in **Enter offset value** to set the offset to a specified integer.

After you reset an offset, Control Center may need a few minutes to catch up.

<a id="c3-delete-offsets-consumers"></a>

## Delete offsets for consumer groups

To delete offsets for consumer groups, use the following procedure:

1. From **Clients**, select your cluster name.
2. Select **Consumers** and then select **Consumer Lag**. A list of consumer group IDs is displayed.
3. Select a consumer group ID. A list of clients and consumers is displayed.
4. Select the client or consumer you want to delete, or select all.
5. Select **Delete offset**. The **Delete offset** dialog appears.
6. In **Delete offset**, enter the required text, and then select **Delete**.

<a id="c3-reset-offsets-share-groups"></a>

## Reset offsets for share groups

To reset offsets for share groups, use the following procedure:

1. From **Clients**, select your cluster name.
2. Select **Share Groups**. A list of share group IDs is displayed.
3. Select a share group ID. A list of clients and consumers is displayed.
4. Select the **Topic** tab.
5. Select the topic and partition you want to reset, or select all.
6. Select **Reset offset**. The **Reset offset** dialog appears.
7. In **Reset offset**,  choose one of the following and then select **Reset**:
   - **Earliest** to set the offset to the earliest offset available for the topic and partition.
   - **Latest** to set the offset to the latest offset available for the topic and partition.
   - **Offset value** and add a value in **Enter offset value** to set the offset to a specified integer.

After you reset an offset, Control Center may need a few minutes to catch up.

## Delete offsets for share groups

To delete offsets for share groups, use the following procedure:

1. From **Clients**, select your cluster name.
2. Select **Share Groups**. A list of share group IDs is displayed.
3. Select a share group ID. A list of clients and consumers is displayed.
4. Select the **Topic** tab.
5. Select the topic and partition you want to delete, or select all.
6. Select **Delete offset**. The **Delete offset** dialog appears.
7. In **Delete offset**, enter the required text, and then select **Delete**.
