---
title: dots.v2.kubernetes.clusters.byCluster_id().destroy_with_associated_resources.dangerous.delete()
description: Delete a Cluster and All of its Associated Resources (Dangerous)
product: Reference
url: https://docs.digitalocean.com/reference/dots/reference/kubernetes/kubernetes-destroy-associatedresourcesdangerous/
last_updated: "2026-11-18"
---

> **For AI agents:** The documentation index is at [https://docs.digitalocean.com/llms.txt](https://docs.digitalocean.com/llms.txt). Markdown versions of pages use the same URL with `index.html.md` in place of the HTML page (for example, append `index.html.md` to the directory path instead of opening the HTML document).

# dots.v2.kubernetes.clusters.byCluster_id().destroy_with_associated_resources.dangerous.delete()

Generated on 18 Nov 2026 from DoTs version [`v1.25.0`](https://github.com/digitalocean/dots/releases/tag/v1.25.0)

## Usage

```typescript
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`](https://docs.digitalocean.com/reference/api/reference/kubernetes/index.html.md#kubernetes_destroy_associatedResourcesDangerous). 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

```typescript
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`](https://docs.digitalocean.com/reference/api/reference/kubernetes/index.html.md#kubernetes_destroy_associatedResourcesDangerous) in the API reference for additional detail on responses, headers, parameters, and more.