---
title: "ezgh hosted-queues consumer-groups reset-offsets"
description: "Reset a consumer group's offsets."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.ezghcloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ezgh hosted-queues consumer-groups reset-offsets

{/* Generated by ezgh-cli's internal/tools/clidocs from the ezgh command tree. Don't edit: change the command's help in ezgh-cli and regenerate. */}

```sh
ezgh hosted-queues consumer-groups reset-offsets <cluster> <group> --to earliest|latest|timestamp [--timestamp t] [--topic t] [--yes] [--wait] [flags]
```

Move an empty consumer group's offsets to the earliest or latest message, or to a time (`--timestamp` YYYY-MM-DDTHH:MM:SS.sssZ), on every topic it reads or on `--topic`. Its consumers read from there when they start again. It asks first on a terminal; `--yes` confirms otherwise.

Part of [`ezgh hosted-queues consumer-groups`](/cli/reference/hosted-queues-consumer-groups).

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--timestamp` | string |  | with `--to` timestamp: the time, YYYY-MM-DDTHH:MM:SS.sssZ |
| `--to` | string |  | earliest, latest or timestamp |
| `--topic` | string |  | only this topic |
| `--wait` | boolean |  | wait until it's done |
| `--wait-timeout` | duration | `10m0s` | how long `--wait` waits |
| `-y`, `--yes` | boolean |  | don't ask for confirmation |

This command also takes the [global flags](/cli/reference#global-flags).

Source: https://docs.ezghcloud.com/cli/reference/hosted-queues-consumer-groups-reset-offsets/index.mdx
