---
title: "Destroy a sandbox"
method: DELETE
path: "/sandboxes/{id}"
tags: ["Sandboxes"]
---

# Destroy a sandbox

`DELETE /sandboxes/{id}`

## Request

- Base URL: `https://sandbox-as-a-service.com/v1`
- URL: `https://sandbox-as-a-service.com/v1/sandboxes/{id}`
- Auth: HTTP bearer

Destroys the sandbox and stops billing for it. Data inside the sandbox is lost.

## Response `200`

Sandbox destroyed.

- object
  - `object` string
  - `id` string
  - `status` 'deleted'
  - `deleted_at` string, date-time

## Other responses

- `202`: Teardown accepted and completing in the background.
- `401`: Missing or invalid API key.
- `404`: No sandbox with that id for this account.

---

[API](https://skmtc.dev/sandbox-as-a-service/apis/sandbox-as-a-service-api.md) · [All operations](https://skmtc.dev/sandbox-as-a-service/apis/sandbox-as-a-service-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sandbox-as-a-service/apis/sandbox-as-a-service-api/revisions/4f1ea2cf8333?raw)
