dots.v2.kubernetes.clusters.byCluster_id().destroy_with_associated_resources.selective.delete()
Generated on 5 Nov 2026
from DoTs version
v1.23.0
Usage
client.v2.kubernetes.clusters.byCluster_id(cluster_id).destroy_with_associated_resources.selective.delete(body: Destroy_associated_kubernetes_resources, requestConfiguration?: RequestConfiguration<object>): Promise<void>Description
To delete a Kubernetes cluster along with a subset of its associated resources,
send a DELETE request to /v2/kubernetes/clusters/{cluster_id}/destroy_with_associated_resources/selective.
The JSON body of the request should include load_balancers, volumes, or
volume_snapshots keys each set to an array of IDs for the associated
resources to be destroyed.
The IDs can be found by querying the cluster’s associated resources endpoint. Any associated resource not included in the request will remain and continue to accrue changes on your account.
Parameters
Path Parameters
cluster_idstring requiredExample:
bd5f5959-5e1e-4205-a714-a914373942afA unique ID that can be used to reference a Kubernetes cluster.
Request Body
loadBalancersarray of strings optionalExample:
["4de7ac8b-495b-4884-9a69-1050c6793cd6"]A list of IDs for associated load balancers to destroy along with the cluster.
volumesarray of strings optionalExample:
["ba49449a-7435-11ea-b89e-0a58ac14480f"]A list of IDs for associated volumes to destroy along with the cluster.
volumeSnapshotsarray of strings optionalExample:
["edb0478d-7436-11ea-86e6-0a58ac144b91"]A list of IDs for associated volume snapshots to destroy along with the cluster.
Request Sample
More Information
See /v2/kubernetes/clusters/{cluster_id}/destroy_with_associated_resources/selective in the API reference for additional detail on responses, headers, parameters, and more.