dots.v2.kubernetes.clusters.byCluster_id().destroy_with_associated_resources.dangerous.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.dangerous.delete(requestConfiguration?: RequestConfiguration<object>): Promise<void>

Description

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

Parameters

cluster_id string required

Example: bd5f5959-5e1e-4205-a714-a914373942af

A unique ID that can be used to reference a Kubernetes cluster.

Min: 1

Request Sample

Show Request Sample
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
    createDigitalOceanClient,
    DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";

const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);

await client.v2.kubernetes.clusters
    .byCluster_id("bd5f5959-5e1e-4205-a714-a914373942af").destroy_with_associated_resources.dangerous.delete();

More Information

See /v2/kubernetes/clusters/{cluster_id}/destroy_with_associated_resources/dangerous in the API reference for additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.