Home / Servers / DigitalOcean API / kubernetes_destroy_associated_resources_selective

Selectively Delete a Cluster and its Associated Resources

An MCP tool from the DigitalOcean API server, hosted on mcp.hjlabs.in.

Selectively Delete a Cluster and its Associated Resources To delete a Kubernetes cluster along with a subset of its associated resources, send a DELETE request to /v2/kubernetes/clusters/$K8S_CLUSTER_ID/destroy_with_associated_resources/selective. The JSON… [DELETE /v2/kubernetes/clusters/{cluster_id}/destroy_with_associated_resources/selective]

Name on the gateway: digitalocean_api__kubernetes_destroy_associated_resources_selective · may change things.

Parameters

NameTypeDescription
cluster_id requiredstringA unique ID that can be used to reference a Kubernetes…
load_balancersarrayA list of IDs for associated load balancers to destroy along with the cluster.
volumesarrayA list of IDs for associated volumes to destroy along with the cluster.
volume_snapshotsarrayA list of IDs for associated volume snapshots to destroy along with the cluster.

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "digitalocean_api__kubernetes_destroy_associated_resources_selective",
  "arguments": {
    "cluster_id": "…"
  }
}

Or connect the DigitalOcean API server directly, which lists 874 tools including this one:

Run in your terminal
claude mcp add --transport http hj-digitalocean-api https://mcp.hjlabs.in/mcp/digitalocean-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the selectively delete a cluster and its associated resources tool with cluster_id set to ….

More from DigitalOcean API