jx delete contexts

list of jx commands

jx delete contexts

Deletes one or more Kubernetes contexts

Synopsis

Deletes one or more Kubernetes contexts.

jx delete contexts [flags]

Examples

  # Deletes a context for a cluster that no longer exists
  jx delete context something
  
  # Deletes all contexts containing the word cheese
  # selecting them all by default
  jx delete ctx -a cheese

Options

  -a, --all              Selects all the matched contexts
      --delete-cluster   Also delete the cluster config associated to the context
      --delete-user      Also delete the user config associated to the context
  -f, --filter string    Filter the list of contexts to those containing this text
  -h, --help             help for contexts

Options inherited from parent commands

  -b, --batch-mode   Runs in batch mode without prompting for user input
      --verbose      Enables verbose output. The environment variable JX_LOG_LEVEL has precedence over this flag and allows setting the logging level to any value of: panic, fatal, error, warn, info, debug, trace

SEE ALSO

Auto generated by spf13/cobra on 2-Sep-2020