v12

latestOpenAPI 3.0.3raw.githubusercontent.com2026-06-1811583196.1 KB
Virtual Machines

Delete VM

Permanently delete a virtual machine and release its resources.

Attached Volumes

Control what happens to volumes attached to the VM with volume_action:

  • detach (default) — volumes are detached and kept. They remain billable and can be re-attached to another VM.
  • delete — volumes are permanently deleted along with the VM.

VPC Cleanup

Set delete_vpc to true to also delete the VM's associated VPC. The VPC is only deleted if no other VMs are using it.

Billing

If the VM has an active subscription, the remaining prepaid balance is refunded pro-rata (hourly precision) to your account balance.

delete/api/v1/vms/{id}

Path parameters

idstring uuid required

VM ID (UUID)

Headers

X-Project-IDstring uuid required

Project ID. Required for all mutating operations (create, delete, power actions, resize).

Request body

volume_action'detach' | 'delete'

What to do with attached volumes. detach keeps them (still billable), delete removes them permanently.

delete_vpcboolean

Whether to delete the associated VPC. Only succeeds if no other VMs are using it.

Response

VM deleted successfully

successboolean
messagestring

Example response

{
  "success": true,
  "message": "Operation completed successfully"
}