---
updatedAt: 2026-09-15T01:57:36.000Z
agentTools:
  projectIndex: https://developers.hivelocity.net/llms.txt
---

# Destroy + expunge a VM

Spawns a standard network task — poll
it via the network-task endpoints.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "paths": {
    "/cloud/vdcs/{vdcId}/vms/{vmId}": {
      "delete": {
        "description": "Spawns a standard network task — poll\nit via the network-task endpoints.",
        "operationId": "delete_cloud_vdc_vm_resource",
        "parameters": [
          {
            "description": "An optional fields mask",
            "in": "header",
            "name": "X-Fields",
            "schema": {
              "type": "string",
              "format": "mask"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NetworkTask-dump"
                }
              }
            }
          },
          "403": {
            "description": "You have not been granted permission to complete this action. Please contact your account manager to grant the proper permission."
          }
        },
        "summary": "Destroy + expunge a VM",
        "tags": [
          "Cloud"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "vdcId",
          "required": true,
          "schema": {
            "type": "integer"
          }
        },
        {
          "in": "path",
          "name": "vmId",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ]
    }
  },
  "info": {
    "description": "Interact with Hivelocity",
    "title": "Hivelocity API",
    "version": "2.0"
  },
  "security": [
    {
      "apiKey": []
    }
  ],
  "tags": [
    {
      "description": "Hivelocity Cloud — virtual data centers (VDCs) and their resources",
      "name": "Cloud"
    }
  ],
  "servers": [
    {
      "url": "https://core.hivelocity.net/api/v2"
    }
  ],
  "components": {
    "securitySchemes": {
      "apiKey": {
        "in": "header",
        "name": "X-API-KEY",
        "type": "apiKey"
      }
    },
    "schemas": {
      "NetworkTask-dump": {
        "properties": {
          "clientId": {
            "description": "Unique ID of the client triggering the task.",
            "type": "integer"
          },
          "deviceId": {
            "description": "Unique ID of the target device.",
            "type": "integer"
          },
          "metaData": {
            "description": "Key value arguments used to trigger the task.",
            "type": "string"
          },
          "result": {
            "description": "Success|Pending|Failed. Null value also means Pending.",
            "type": "string"
          },
          "taskCreated": {
            "description": "Timestamp of task creation date.",
            "type": "object"
          },
          "taskId": {
            "description": "Unique ID of the network task.",
            "type": "string"
          },
          "taskUpdated": {
            "description": "Timestamp of most recent activity taken on the network task. This will update multiple times for multi-step tasks.",
            "type": "object"
          }
        },
        "type": "object"
      }
    }
  }
}
```