> 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/vmware-virtual-machines/how-tos/delete-virtual-machines.md).

# Delete virtual machines

***

## Delete a server using the control panel

To delete a server and all of its data, including the backups, click on the server in the control panel.&#x20;

Next, click on **Actions** and then **Delete server**.

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

You then need to verify that you want to delete everything associated with the VM. To confirm, you must enter the VM's name in the text field. You also have the choice to keep the VM's IP addresses in the project once the VM is deleted. In this case, we opt to keep them. Once you are sure you want to delete the server and all of its data, click **Delete**.

{% hint style="danger" %}
All data associated with the VM will be deleted, including all backups.
{% endhint %}

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

## Delete a server 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/vmware-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.
