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

# Delete Machine

`DELETE /v1/machines/{machine_id}`

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.net/cyberdesk-hq/apis/cyberdesk-cloud.md) · [All operations](https://skmtc.net/cyberdesk-hq/apis/cyberdesk-cloud/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cyberdesk-hq/cyberdesk-cloud/versions/830d2f48963d/schema)
