> 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). Agents can also search and read this documentation through its [MCP server](https://docs.glesys.com/~gitbook/mcp).

# Delete virtual machines

Deleting a virtual machine will permanently delete all data associated with it.

***

## 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. Manual backups will be purged after 72 hours. Scheduled backups will be purged at the end of the retention period.
{% endhint %}

<figure><img src="https://3379166260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMZhhdQNcWOpX5Bj48GK%2Fuploads%2FNmOl8c9j4GMZnxqogozH%2Fdelete-a-kvm-server.png?alt=media&amp;token=29d2ac19-3bc2-4a4f-90a5-a4b64dfda090" 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="https://3379166260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMZhhdQNcWOpX5Bj48GK%2Fuploads%2FWUbDhuQzSFzKRx644Wzi%2Fdelete-kvm-vm-new.png?alt=media&amp;token=3bad9741-a0d6-4311-8fb0-427503f0064c" 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](https://docs.glesys.com/platform/control-panel/api.md), use the [server/destroy](https://github.com/GleSYS/API-docs/wiki/API-Documentation#serverdestroy) endpoint.
