CARVIEW |
Select Language
HTTP/2 301
date: Sat, 19 Jul 2025 16:27:20 GMT
content-type: text/html
location: /reference/doctl/reference/kubernetes/cluster/delete-selective/
x-frame-options: ALLOW-FROM https://marina.digitalocean.com/
x-xss-protection: 1; mode=block
content-security-policy: frame-ancestors https://amd.digitalocean.com/ https://amd.s2r1.internal.digitalocean.com/ https://localdev.internal.digitalocean.com https://cloud.s2r1.internal.digitalocean.com https://cloud.digitalocean.com https://digitaloceaninc.lookbookhq.com
x-content-security-policy: frame-ancestors https://amd.digitalocean.com/ https://amd.s2r1.internal.digitalocean.com/ https://localdev.internal.digitalocean.com https://cloud.s2r1.internal.digitalocean.com https://cloud.digitalocean.com https://digitaloceaninc.lookbookhq.com
x-do-app-origin: 66b87bdb-ceab-4f7c-975f-da2affb6d13a
cache-control: private
x-do-orig-status: 301
cf-cache-status: DYNAMIC
set-cookie: __cf_bm=qsCfpAcByokacXTHhVa7tme991F93zmfKvWuQqIiwzc-1752942439-1.0.1.1-mqIA6e9uluMuwUxoZlkUeLjRW5TeDQSUw3lYJW0D8iREkm2fEEK6IOQQxvQ4k2fnfeAUXsv2vk59OFsFUbg64W7I8tNjz9McBeSTUf5BhMw; path=/; expires=Sat, 19-Jul-25 16:57:19 GMT; domain=.ondigitalocean.app; HttpOnly; Secure; SameSite=None
vary: Accept-Encoding
set-cookie: __cf_bm=vpHBhgKgyIMfBqalrwjcEp9T.E3nwEMIftHgcl6NLa0-1752942440-1.0.1.1-FBZKTn4pDzq50WFJQr8nNyiZv7zGW6Z8RZvlQq3Pf9hTNiqGwK4GNUSnFwkftI_I_Kq_B8Hcxsbc5P_.6LP1oViaRcUiQaoR5BCu3sLM2XHPCWMmfWcepBAmKt2nmL.x; path=/; expires=Sat, 19-Jul-25 16:57:20 GMT; domain=.digitalocean.com; HttpOnly; Secure; SameSite=None
server: cloudflare
cf-ray: 961b95e47d214e3d-BLR
HTTP/2 200
date: Sat, 19 Jul 2025 16:27:21 GMT
content-type: text/html
last-modified: Sat, 19 Jul 2025 00:07:53 GMT
vary: Accept-Encoding
x-frame-options: ALLOW-FROM https://marina.digitalocean.com/
x-xss-protection: 1; mode=block
content-security-policy: frame-ancestors https://amd.digitalocean.com/ https://amd.s2r1.internal.digitalocean.com/ https://localdev.internal.digitalocean.com https://cloud.s2r1.internal.digitalocean.com https://cloud.digitalocean.com https://digitaloceaninc.lookbookhq.com
x-content-security-policy: frame-ancestors https://amd.digitalocean.com/ https://amd.s2r1.internal.digitalocean.com/ https://localdev.internal.digitalocean.com https://cloud.s2r1.internal.digitalocean.com https://cloud.digitalocean.com https://digitaloceaninc.lookbookhq.com
x-do-app-origin: 278230ee-e6a3-11ec-b1dc-0c42a19a82a7
cache-control: private
x-do-orig-status: 200
cf-cache-status: DYNAMIC
set-cookie: __cf_bm=b7T80vIOxTynz0FlAlleoCclhIxoiubPPhk_oUkRqcg-1752942441-1.0.1.1-psxbdNdebIVOIU13K42sMPL4dMDZpGjZeXQ1WCu9XKzRCOEaI9QGuLTw15q.O8zLtpGLmJ3NJNg3M2A7KBnh95JuohCG6bxs_Qe.fNevJgI; path=/; expires=Sat, 19-Jul-25 16:57:21 GMT; domain=.ondigitalocean.app; HttpOnly; Secure; SameSite=None
server: cloudflare
cf-ray: 961b95f00a754e3d-BLR
content-encoding: gzip
doctl kubernetes cluster delete-selective | DigitalOcean Documentation
doctl kubernetes cluster delete-selective
Generated on 23 Jun 2025
from doctl
version
v1.131.0
Usage
doctl kubernetes cluster delete-selective <id|name> [flags]
Aliases
ds
Description
Deletes the specified Kubernetes cluster and Droplets associated with it. It also deletes the specified associated resources. Associated resources can be load balancers, volumes and volume snapshots.
Example
The following example deletes a cluster named example-cluster
and selectively deletes the specified load balancers and volumes associated with the cluster:
doctl kubernetes cluster delete-selective example-cluster --volume-list "386734086,example-volume" --load-balancer-list "191669331,example-load-balancer"
Flags
Option | Description |
---|---|
--force , -f |
Deletes the cluster without a confirmation prompt Default: false |
--help , -h |
Help for this command |
--load-balancers |
A comma-separated list of load balancer IDs or names to delete |
--snapshots |
A comma-separated list of volume snapshot IDs or names to delete |
--update-kubeconfig |
Removes the deleted cluster from your kubeconfig Default: true |
--volumes |
A comma-separated list of volume IDs or names to delete |
Related Commands
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: |
--context |
Specify a custom authentication context name |
--http-retry-max |
Set maximum number of retries for requests that fail with a 429 or 500-level error
Default: 5 |
--http-retry-wait-max |
Set the minimum number of seconds to wait before retrying a failed request
Default: 30 |
--http-retry-wait-min |
Set the maximum number of seconds to wait before retrying a failed request
Default: 1 |
--interactive |
Enable interactive behavior. Defaults to true if the terminal supports it (default false)
Default: false |
--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 |
We can't find any results for your search.
Try using different keywords or simplifying your search terms.