chainctl clusters uninstall


chainctl clusters uninstall

Uninstalls Chainguard from the current kubernetes context.

chainctl clusters uninstall [--group GROUP_NAME | GROUP_ID] [--context CONTEXT_NAME | --inactive DURATION] [--yes]


  # Uninstall a cluster and choose the context interactively
  chainctl cluster uninstall
  # Uninstall all clusters not seen in 7 days
  chainctl cluster uninstall --inactive 168h
  # Uninstall a cluster only if it is a member of a given group
  chainctl cluster uninstall --group my-group --context my-context


      --context string      Indicates the name of the context (in kubectl) to disconnect from Chainguard.
      --group string        Name or ID of a group to filter clusters by for uninstallation.
  -h, --help                help for uninstall
      --inactive duration   Delete all clusters that have not been seen within the given duration. (default 168h0m0s)
  -y, --yes                 Automatic yes to prompts; assume "yes" as answer to all prompts and run non-interactively.

Options inherited from parent commands

      --api string                   The url of the Chainguard platform API. (default "http://api.api-system.svc")
      --audience string              The Chainguard token audience to request. (default "http://api.api-system.svc")
      --config string                A specific chainctl config file.
      --console string               The url of the Chainguard platform Console. (default "http://console-ui.api-system.svc")
      --issuer string                The url of the Chainguard STS endpoint. (default "http://issuer.oidc-system.svc")
  -o, --output string                Output format. One of: ["", "table", "tree", "json", "id", "wide"]
      --timestamp-authority string   The url of the Chainguard Timestamp Authority endpoint. (default "http://tsa.timestamp-authority.svc")
  -v, --v int                        Set the log verbosity level.