> For the complete documentation index, see [llms.txt](https://docs.ionos.com/cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ionos.com/cloud/containers/managed-kubernetes/how-tos/delete-a-cluster.md).

# Delete a Cluster

You can delete a cluster from the [<mark style="color:blue;">DCD</mark>](https://docs.ionos.com/cloud/support/general-information/glossary-of-terms#data-center-designer-dcd). Ensure the following prerequisites are met before deleting a cluster.

{% hint style="info" %}
**Prerequisites:**

* Ensure you have the appropriate permissions and access to the chosen cluster.
* The chosen cluster should be in an **Available** state.
* Delete all the existing **node pools** associated with the chosen cluster.
  {% endhint %}

To delete a cluster, follow these steps:

1. In the **DCD**, go to **Menu** > **Containers** > **Managed Kubernetes**.

The cluster list displays each cluster's **Name**, **State**, **Region**, **Version**, and **Node Pools**. Use the **Filter by state** drop-down list or the **Search** field to locate a specific cluster. Select ![options](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-0820a9f96e75bb8fa664037bb8f38d7d825394d7%2Fthree-dots.png?alt=media) in the **OPTIONS** column to perform the following actions:

* **Open**: Opens the cluster details and configuration.
* **Download kubeconfig.yaml**: Downloads the kubeconfig file in YAML format for use with `kubectl`.
* **Download kubeconfig.json**: Downloads the kubeconfig file in JSON format for use with `kubectl`.
* **Copy cluster UUID**: Copies the unique identifier of the cluster to the clipboard.
* **Delete cluster**: Permanently deletes the cluster and removes it from the list.

2. Select a cluster you want to delete from the clusters list.
3. Select **Delete cluster**.

![Delete a cluster](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-0bc83300cf067fd594905ccf30baa19407ba953e%2Fdelete-a-cluster-public.png?alt=media)

* Optionally, go to **Cluster settings** > **Delete cluster**, or select the ![Options menu](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-0820a9f96e75bb8fa664037bb8f38d7d825394d7%2Fthree-dots.png?alt=media) next to the cluster name and choose **Delete cluster**.

![Optional settings for deleting a cluster](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-b0fa6cd486c6b7edc8e21bc3e4fa30a8defff70c%2Fdelete-cluster-alternative.png?alt=media)

4. Select **OK** to delete the cluster.

{% hint style="success" %}
**Result:** Once the deletion is complete, the cluster is removed from the list and a confirmation message indicates that the cluster is successfully deleted.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.ionos.com/cloud/containers/managed-kubernetes/how-tos/delete-a-cluster.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
