> 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

Deleting a virtual server will permanently delete all data associated with it, including backups.

***

## 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="https://3379166260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMZhhdQNcWOpX5Bj48GK%2Fuploads%2FoTCexl874r6PLmqN4Tgl%2Fdelete-a-kvm-server.png?alt=media&amp;token=cad66be0-1ff6-4451-914c-70cccc352119" 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%2FiXZWgGOgWQSozusTCBOX%2Fdelete-a-kvm-server-confirm.png?alt=media&amp;token=c5f64445-2cbf-4652-bb7b-5db6ca5b842c" 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.
