VMmanager Knowledge Base

If a VM cannot be deleted

In some cases, it is not possible to delete VMs through the platform's web interface. For example, if the VM has a status of "Corrupted". You can delete such a VM forcibly using an API request.

Authorization is required to execute API requests in VMmanager. To learn how to get an authorization token, see the article API guide in the VMmanager documentation.

To forcibly delete a VM, execute the below request:

curl -k 'https://{domain.com}/vm/v3/host/{host_id}?force=true' -X DELETE -H 'X-XSRF-TOKEN: {token}'
Comments
Note
In the platform's web interface, tasks to delete VMs may end with an error if communication with the node is lost. This is normal and related to the peculiarities of forced deletion: the platform makes attempts to delete VM snapshots even if the node is unavailable.