Compute

Delete a VM

Permanently deletes one VM and its disk, releases its IP, and removes it from any project. Requires the "delete" permission and the X-Confirm: delete header. Without the header the response is 400 CONFIRMATION_REQUIRED with a summary of what would be deleted. Update any DNS records pointing at the VM afterwards.

delete/agent/compute/vms/{id}

Request

  • Base URL: https://edge.network
  • URL: https://edge.network/agent/compute/vms/{id}
  • Auth: HTTP bearer

Path parameters

idstring required

VM id.

Headers

X-Confirm'delete' required

Must be the literal string "delete". Omit it to get a 400 CONFIRMATION_REQUIRED response describing what would be deleted.

X-Dry-Run'true' | 'false'

Set to "true" to preview the operation (validation, cost, plan) without making changes.

Idempotency-Keystring

Unique key for safe retries. Repeating a request with the same key returns the original response instead of re-executing.

Response

Success.

tell_userstring required

Human-readable summary of what happened, for the agent to relay to its operator.

Changes

No recorded changes to this operation across all 1 revision of this API.