{
  "schema_version": 2,
  "id": "integrate/redis-data-integration/reference/cli/redis-di-delete-context",
  "title": "redis-di delete-context",
  "url": "https://redis.io/docs/latest/integrate/redis-data-integration/reference/cli/redis-di-delete-context/",
  "summary": "Deletes a context",
  "aliases": [
    "/integrate/redis-data-integration/ingest/reference/cli/redis-di-delete-context/"
  ],
  "tags": [
    "redis-di"
  ],
  "last_updated": "2026-09-18T16:41:35+01:00",
  "page_type": "content",
  "content_hash": "b3dacaccfa2ab96f50462ae00f01bc752de0431324421cf7e65304471f12880c",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "Deletes a context from the `~/.redis-di` context file. Because this is destructive, the command asks\nfor confirmation unless you pass `--force`."
    },
    {
      "id": "usage",
      "title": "Usage",
      "role": "syntax",
      "text": "[code example]"
    },
    {
      "id": "options",
      "title": "Options",
      "role": "parameters",
      "text": "| Option    | Description                   |\n| :-------- | :---------------------------- |\n| `--force` | Skip the confirmation prompt. |\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 delete-context <name> [flags]",
      "section_id": "usage"
    },
    {
      "id": "example-ex0",
      "language": "bash",
      "code": "redis-di delete-context dev --force",
      "section_id": "example"
    }
  ]
}
