{
  "schema_version": 2,
  "id": "integrate/redis-data-integration/reference/cli/redis-di-reset",
  "title": "redis-di reset",
  "url": "https://redis.io/docs/latest/integrate/redis-data-integration/reference/cli/redis-di-reset/",
  "summary": "Resets a pipeline",
  "aliases": [
    "/integrate/redis-data-integration/ingest/reference/cli/redis-di-reset/"
  ],
  "tags": [
    "redis-di"
  ],
  "last_updated": "2026-10-09T11:27:50+03:00",
  "page_type": "content",
  "content_hash": "0e9ce07b4aaf0831d73963919100ec0bc71570e3799deb068a902b11f3787bf8",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "Clears a pipeline's saved source positions without changing its configured snapshot mode\nor flushing the target Redis database. With the default `initial` mode, the collector\ntakes a new data snapshot and then resumes change data capture (CDC). Other modes can\nskip existing rows or omit ongoing change capture. See\n[Choose a snapshot mode](https://redis.io/docs/latest/integrate/redis-data-integration/data-pipelines/pipeline-config#choose-a-snapshot-mode).\n\nBy default, the command waits for the pipeline to reach a terminal state before returning.\n\nWith `--source`, only the specified source is reset. See\n[Start, stop, and reset a single source](https://redis.io/docs/latest/integrate/redis-data-integration/data-pipelines/multiple-sources#start-stop-and-reset-a-single-source) for more information."
    },
    {
      "id": "usage",
      "title": "Usage",
      "role": "syntax",
      "text": "[code example]\n\nThe pipeline name is an optional argument that defaults to `default`."
    },
    {
      "id": "options",
      "title": "Options",
      "role": "parameters",
      "text": "| Option      | Description                                                                       |\n| :---------- | :-------------------------------------------------------------------------------- |\n| `--source`  | Target only this source instead of the whole pipeline.                            |\n| `--wait`    | Wait for the pipeline to reach the expected state (default `true`).               |\n| `--timeout` | Maximum time to wait for the pipeline to reach the expected state (default `2m`). |\n\nThis command also accepts the\n[global options](https://redis.io/docs/latest/integrate/redis-data-integration/reference/cli/redis-di#global-options)."
    },
    {
      "id": "example",
      "title": "Example",
      "role": "example",
      "text": "[code example]"
    }
  ],
  "examples": [
    {
      "id": "usage-ex0",
      "language": "plaintext",
      "code": "redis-di reset [pipeline] [flags]",
      "section_id": "usage"
    },
    {
      "id": "example-ex0",
      "language": "bash",
      "code": "redis-di reset\n\n# Reset only source mysql\nredis-di reset --source mysql",
      "section_id": "example"
    }
  ]
}
