hardkubectl

Remove a context entry from the kubeconfig file

command

kubectl config delete-context CONTEXT

also accepted

kubectl config delete-context

Command breakdown

Part of the Kubernetes CLI (kubectl) — Cluster & Context category.

kubectlconfigdelete-contextCONTEXT

Test your recall — not just your reading.

Practice with interactive quiz →