Delete Virtual Machine

  • DELETE /api/marketplace-resources/<resource_uuid>/ - Delete an existing VM.

    This endpoint permanently deletes the specified virtual machine.

    Notes:

    • Warning: This action is irreversible, so exercise caution!
    • Before deleting a VM, ensure that you have detached any associated disks or other resources.
    • Deleting a VM may impact other services or applications that depend on it.
    • You'll need the resource_uuid of the VM, which you can obtain from the "List VMs" endpoint (3.2.2).

    Request Example:

    DELETE [https://api.wayscloud.services/api/marketplace-resources/vm_resource_uuid/](https://api.wayscloud.services/api/marketplace-resources/vm_resource_uuid/)
    Authorization: Token <your_api_token>

    Status Codes:

    • 204 No Content: The VM was successfully deleted.
    • 401 Unauthorized: The user making the request is not authorized.
    • 404 Not Found: The specified VM resource_uuid does not exist.
    • 409 Conflict: The VM cannot be deleted due to its current state (e.g., deleting while the VM is creating or still has a disk attached).