doctl kubernetes cluster delete

Go to Navigation

Usage

doctl kubernetes cluster delete <id|name>... [flags]

Aliases

d, rm

Description

This command deletes the specified Kubernetes clusters and the Droplets associated with them. To delete all other DigitalOcean resources created during the operation of the clusters, such as load balancers, volumes or volume snapshots, use the –dangerous flag.

Flags

OptionDescription
--dangerousBoolean indicating whether to delete the cluster’s associated resources like load balancers, volumes and volume snapshots
Default: false
--force, -fBoolean indicating whether to delete the cluster without a confirmation prompt
Default: false
--help, -hHelp for this command
--update-kubeconfigBoolean indicating whether to remove the deleted cluster from your kubeconfig
Default: true
CommandDescription
doctl kubernetes clusterDisplay commands for managing Kubernetes clusters

Global Flags

OptionDescription
--access-token, -tAPI V2 access token
--api-url, -uOverride default API endpoint
--config, -cSpecify a custom config file
Default:
  • macOS: ${HOME}/Library/Application Support/doctl/config.yaml
  • Linux: ${XDG_CONFIG_HOME}/doctl/config.yaml
  • Windows: %APPDATA%\doctl\config.yaml
--contextSpecify a custom authentication context name
--output, -oDesired output format [text|json]
Default: text
--traceShow a log of network activity while performing a command
Default: false
--verbose, -vEnable verbose output
Default: false