{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"To delete a Kubernetes cluster along with a subset of its associated resources,\nsend a DELETE request to `/v2/kubernetes/clusters/$K8S_CLUSTER_ID/destroy_with_associated_resources/selective`.\n\nThe JSON body of the request should include `load_balancers`, `volumes`, or\n`volume_snapshots` keys each set to an array of IDs for the associated\nresources to be destroyed.\n\nThe IDs can be found by querying the cluster's associated resources endpoint.\nAny associated resource not included in the request will remain and continue\nto accrue changes on your account.\n","properties":{"path":{"type":"object","properties":{"cluster_id":{"type":"string","format":"uuid","minimum":1,"examples":["bd5f5959-5e1e-4205-a714-a914373942af"],"description":"A unique ID that can be used to reference a Kubernetes cluster."}},"required":["cluster_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/destroy_associated_kubernetes_resources"}},"required":["path","body"],"additionalProperties":false,"definitions":{"destroy_associated_kubernetes_resources":{"type":"object","description":"An object containing the IDs of resources to be destroyed along with their associated with a Kubernetes cluster.","properties":{"load_balancers":{"type":"array","items":{"type":"string"},"description":"A list of IDs for associated load balancers to destroy along with the cluster.","examples":[["4de7ac8b-495b-4884-9a69-1050c6793cd6"]]},"volumes":{"type":"array","items":{"type":"string"},"description":"A list of IDs for associated volumes to destroy along with the cluster.","examples":[["ba49449a-7435-11ea-b89e-0a58ac14480f"]]},"volume_snapshots":{"type":"array","items":{"type":"string"},"description":"A list of IDs for associated volume snapshots to destroy along with the cluster.","examples":[["edb0478d-7436-11ea-86e6-0a58ac144b91"]]}}}}},"name":"Selectively Delete a Cluster and its Associated Resources","id":"digitalocean.kubernetes_destroy_associatedresourcesselective","example":{"path":{"cluster_id":"bd5f5959-5e1e-4205-a714-a914373942af"},"body":{}},"maxRequests":1,"summary":false}}