---
updatedAt: 2026-05-27T19:42:41.000Z
agentTools:
  projectIndex: https://developers.hivelocity.net/llms.txt
---

# Cancel/delete device

Cancels/deletes a device with the provided device ID.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "paths": {
    "/bare-metal-devices/{deviceId}": {
      "delete": {
        "operationId": "delete_bare_metal_device_id_resource",
        "responses": {
          "201": {
            "description": "Cancellation Started."
          },
          "204": {
            "description": "Device Deleted"
          },
          "400": {
            "description": "Device Cancellation Failed."
          },
          "401": {
            "description": "Not Allowed"
          },
          "403": {
            "description": "You have not been granted permission to complete this action. Please contact your account manager to grant the proper permission."
          },
          "404": {
            "description": "Device Not Found"
          },
          "409": {
            "description": "Device Already Being Cancelled."
          }
        },
        "summary": "Cancel/delete device",
        "tags": [
          "Bare Metal Devices"
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "deviceId",
          "required": true,
          "schema": {
            "type": "integer"
          }
        }
      ]
    }
  },
  "info": {
    "description": "Interact with Hivelocity",
    "title": "Hivelocity API",
    "version": "2.0"
  },
  "security": [
    {
      "apiKey": []
    }
  ],
  "tags": [
    {
      "description": "Endpoints to handle bare metal devices. This is deprecated, please use the Compute Devices endpoints instead.",
      "name": "Bare Metal Devices"
    }
  ],
  "servers": [
    {
      "url": "https://core.hivelocity.net/api/v2"
    }
  ],
  "components": {
    "securitySchemes": {
      "apiKey": {
        "in": "header",
        "name": "X-API-KEY",
        "type": "apiKey"
      }
    }
  }
}
```