0

Is there a way to remove kubernetes cluster contexts from kubectx? Or can this only be done by manually removing them from kubeconfig?

Wunderbread
  • 898
  • 2
  • 14
  • 34

1 Answers1

5

There is a "delete" command for kubectx. You can see the kubectx help with kubectx --help

For reference, the syntax is

kubectx -d <NAME> [<NAME...>]

eg, kubectx -d followed by one or more Kube context names.

Swiss
  • 5,556
  • 1
  • 28
  • 42