pydo.kubernetes.destroy_associated_resources_dangerous()

Description

To delete a Kubernetes cluster with all of its associated resources, send a DELETE request to /v2/kubernetes/clusters/$K8S_CLUSTER_ID/destroy_with_associated_resources/dangerous. A 204 status code with no body will be returned in response to a successful request.

Parameters

Name Type Required Description Default Value
cluster_id string True A unique ID that can be used to reference a Kubernetes cluster.

Request Sample

import os
from pydo import Client

client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))

resp = client.kubernetes.destroy_associated_resources_dangerous(cluster_id="da8fda8")

More Information

See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.

In this article...