---
title: "Delete a sandbox: stop it, delete its disk and paused memory, revoke its previews and ports, and remove it from lists."
method: DELETE
path: "/v1/sandboxes/{id}"
tags: ["sandboxes"]
---

# Delete a sandbox: stop it, delete its disk and paused memory, revoke its previews and ports, and remove it from lists.

`DELETE /v1/sandboxes/{id}`

## Request

- Base URL: `https://api.withruntime.com`
- URL: `https://api.withruntime.com/v1/sandboxes/{id}`
- Auth: HTTP bearer

Works in any state. Billing ends as a stop's does; a kept disk is billed until its host confirms the deletion, usually seconds. Its snapshots stay (delete them apart), and its usage, charges and audit entries stay. After it the sandbox reads nowhere: GET answers not_found. Deleting it again answers the same.

## Path parameters

- `id` string, required: Resource identifier (UUID).

## Headers

- `Idempotency-Key` string

## Response `200`

Success

- object
  - `id` string, required: Resource identifier (UUID).
  - `kind` 'sandbox', required
  - `name` string, nullable
  - `labels` object: Your own key/value tags, at most 32. Filter lists with label=key:value.
  - `status` 'deleted', required
  - `state` string, required: stopping until its machine has stopped, usually well under a second; then stopped.
  - `deletedAt` string, date-time, required
  - `endedAt` string, date-time, nullable
  - `replayed` boolean

## Other responses

- `default`: Error

---

[API](https://skmtc.dev/withruntime/apis/runtime-cloud-api.md) · [All operations](https://skmtc.dev/withruntime/apis/runtime-cloud-api/llms.txt) · [OpenAPI document](https://skmtc.dev/withruntime/apis/runtime-cloud-api/revisions/6f4012286988?raw)
