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

Option Description
--dangerous Boolean indicating whether to delete the cluster’s associated resources like load balancers, volumes and volume snapshots
Default: false
--force , -f Boolean indicating whether to delete the cluster without a confirmation prompt
Default: false
--help , -h Help for this command
--update-kubeconfig Boolean indicating whether to remove the deleted cluster from your kubeconfig
Default: true
Command Description
doctl kubernetes cluster Display commands for managing Kubernetes clusters

Global Flags

Option Description
--access-token, -t API V2 access token
--api-url, -u Override default API endpoint
--config, -c Specify 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
--context Specify a custom authentication context name
--output, -o Desired output format [text|json]
Default: text
--trace Show a log of network activity while performing a command
Default: false
--verbose, -v Enable verbose output
Default: false