{
  "id": "redis-di-delete-context",
  "title": "redis-di delete-context",
  "url": "https://redis.io/docs/latest/integrate/write-behind/reference/cli/redis-di-delete-context/",
  "summary": "Deletes a context",
  "tags": [
    "docs",
    "integrate",
    "rs",
    "rdi"
  ],
  "last_updated": "2026-04-01T08:10:08-05:00",
  "page_type": "content",
  "content_hash": "e2022edfa79ffa86ce3e0148c6d0a507168313fe821010ee65a964f4df5c935d",
  "sections": [
    {
      "id": "usage",
      "title": "Usage",
      "role": "syntax",
      "text": "[code example]"
    },
    {
      "id": "options",
      "title": "Options",
      "role": "parameters",
      "text": "- `loglevel`:\n\n  - Type: Choice(['DEBUG', 'INFO', 'WARN', 'ERROR', 'CRITICAL'])\n  - Default: `info`\n  - Usage: `--loglevel\n-log-level`\n\n- `context_name` (REQUIRED):\n\n  - Type: STRING\n  - Default: `none`\n  - Usage: `context-name`\n\n- `force`:\n\n  - Type: BOOL\n  - Default: `false`\n  - Usage: `--force\n-f`\n\n  Force operation. skips verification prompts\n\n- `help`:\n\n  - Type: BOOL\n  - Default: `false`\n  - Usage: `--help`\n\n  Show this message and exit."
    },
    {
      "id": "cli-help",
      "title": "CLI help",
      "role": "content",
      "text": "[code example]"
    }
  ],
  "examples": [
    {
      "id": "usage-ex0",
      "language": "plaintext",
      "code": "Usage: redis-di delete-context [OPTIONS] CONTEXT_NAME",
      "section_id": "usage"
    },
    {
      "id": "cli-help-ex0",
      "language": "plaintext",
      "code": "Usage: redis-di delete-context [OPTIONS] CONTEXT_NAME\n\n  Deletes a context\n\nOptions:\n  -log-level, --loglevel [DEBUG|INFO|WARN|ERROR|CRITICAL]\n                                  [default: INFO]\n  -f, --force                     Force operation. skips verification prompts\n  --help                          Show this message and exit.",
      "section_id": "cli-help"
    }
  ]
}
