---
title: "Delete Machine"
method: DELETE
path: "/v1/machines/{machine_id}"
tags: ["machines"]
---

# Delete Machine

`DELETE /v1/machines/{machine_id}`

## Request

- Base URL: `https://api.cyberdesk.io`
- URL: `https://api.cyberdesk.io/v1/machines/{machine_id}`
- Auth: HTTP bearer

Delete a machine.

Associated runs are PRESERVED with machine_id set to NULL.
This ensures run history is never lost when a machine is deleted.
Connections and request logs are cascade deleted.

The machine must belong to the authenticated organization.

## Path parameters

- `machine_id` string, uuid, required

## Headers

- `Idempotency-Key` string

## Response `204`

Successful Response

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/cyberdesk-hq/apis/cyberdesk-cloud.md) - [All operations](https://skmtc.dev/cyberdesk-hq/apis/cyberdesk-cloud/llms.txt) - [OpenAPI document](https://skmtc.dev/cyberdesk-hq/apis/cyberdesk-cloud/revisions/5579352ae05e?raw)
