> For the complete documentation index, see [llms.txt](https://docs.glesys.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.glesys.com/products/compute/kvm-virtual-machines/how-tos/delete-virtual-machines.md).

# Delete virtual machines

***

## Delete a virtual machine using the control panel

To delete a VM, click **Actions** in the top-right corner of the VM's overview page. From here, click **Delete server**.

{% hint style="danger" %}
This action will permanently delete all data associated with the server, including backups.
{% endhint %}

<figure><img src="/files/cL7avyusWEkNlYkQzLJv" alt=""><figcaption></figcaption></figure>

A new window will open where you need to confirm the deletion. Here, you need to type the name of the VM in the text field. You can also choose to keep the VM's IP addresses, which is the default choice. Next, click **Delete**.

<figure><img src="/files/QsIcPeIkSHGdT7b20DGP" alt=""><figcaption></figcaption></figure>

The VM will now be deleted immediately.

## Delete a virtual machine using the API

To delete a virtual machine using the [API](/platform/control-panel/api.md), use the [server/destroy](https://github.com/GleSYS/API-docs/wiki/API-Documentation#serverdestroy) endpoint.


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.glesys.com/products/compute/kvm-virtual-machines/how-tos/delete-virtual-machines.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
