Skip to main content

Delete Virtual Machine

DELETE https://infrahub-api.nexgencloud.com/v1/core/virtual-machines/{id}

Permanently deletes a virtual machine. Supply the virtual machine ID in the path to delete the specified virtual machine.


Path parameters


id integer   Required

The unique identifier of the virtual machine to be deleted.


Attributes


status boolean

Indicates the result of the request to delete the VM. true signifies success, while false indicates an error.


message string

A description of the status of the request to delete the VM.

Example request
curl -X DELETE "https://infrahub-api.nexgencloud.com/v1/core/virtual-machines/{id}" \
-H "accept: application/json"\
-H "api_key: YOUR API KEY"
Response
{
"status": true,
"message": "string"
}

Returns


Returns the status of the request to delete a virtual machine. A true status indicates successful deletion, otherwise an error has occurred.


Back to top