Skip to content

Kcm context delete

kcm context delete

Delete a context (and its per-context tags/alerts) from a kubeconfig

kcm context delete <file> <name> [flags]

Options

      --dir string     Kubeconfig directory (default: ~/.kube)
      --dry-run        Print the planned change without touching the file or state
  -h, --help           help for delete
      --keep-orphans   Keep the referenced cluster/user even if no other context uses them

SEE ALSO

  • kcm context - Rename or delete contexts within a kubeconfig file