---
title: "Remove an idle machine registration, preserving history"
method: DELETE
path: "/api/v1/hosts/machines/{id}"
tags: ["hosts"]
---

# Remove an idle machine registration, preserving history

`DELETE /api/v1/hosts/machines/{id}`

## Request

- Base URL: `https://amplerun-api.spiry.org`
- URL: `https://amplerun-api.spiry.org/api/v1/hosts/machines/{id}`
- Auth: HTTP bearer

Revokes agent credentials and unlists offers. Active rentals or incomplete cleanup return 409. Re-enrollment is required to reconnect.

## Path parameters

- `id` string, uuid, required

## Response `204`

Registration removed; history retained.

## Other responses

- `default`: Error envelope. 401 unauthenticated, 403/404 forbidden, 409 conflict, 422 invalid input, 429 rate limited (code UNAVAILABLE, retryable:true, no Retry-After header), 503 unavailable money/provider state with retryable:true.

---

[API](https://skmtc.dev/amplerun/apis/amplerun-business-api.md) · [All operations](https://skmtc.dev/amplerun/apis/amplerun-business-api/llms.txt) · [OpenAPI document](https://skmtc.dev/amplerun/apis/amplerun-business-api/revisions/40944687fa52?raw)
