---
title: "POST /v1/sandboxes/{id}/destroy"
method: POST
path: "/v1/sandboxes/{id}/destroy"
tags: ["Sandboxes"]
---

# POST /v1/sandboxes/{id}/destroy

`POST /v1/sandboxes/{id}/destroy`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/v1/sandboxes/{id}/destroy`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Response `204`

Sandbox destroyed (alias for `/stop` with an explicit verb)

## Other responses

- `404`: Not found
- `409`: Sandbox belongs to an active agent run — stop the run instead
- `503`: The sandbox's worker node is unreachable; the sandbox was kept

## Changes

- **2026-10-05** `4b228ebed583`: 1 info
  - added the non-success response with the status `503`
- **2026-10-05** `63a80791dc58`: 1 info
  - removed the non-success response with the status `503`
- **2026-10-02** `185fa8a10fca`: 1 info
  - added the non-success response with the status `503`
- **2026-07-27** `1b060c0a4ba3`: 1 info
  - added the non-success response with the status `409`
- **2026-04-25** `774be20905f2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/v1/sandboxes/:id/destroy/post.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
