Delete Virtual Machine Instance
Initiate the permanent termination of a virtual machine instance by providing its unique identifier in the request path.
HTTP Request
DELETE
{API_URL}virtual-machines/{id}
Path Parameters
Parameter | Requirement | Type | Description |
---|---|---|---|
id | Required | string | Target instance's unique identifier |
Response Structure
status boolean
Operation result indicator. Returns true
for successful execution, false
when encountering an error.
message string
Descriptive response indicating the outcome of the instance termination request.
Implementation Example
Request
bash
curl -X DELETE '{API_URL}virtual-machines/{id}' \
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
-H 'refresh-token: {REFRESH_TOKEN}' \
-H 'Content-Type: application/json'
Response
json
{
"status": true,
"message": "Instance termination process initiated successfully"
}