---
title: "DELETE /v1/sandboxes/by-name/:name — destroy a sandbox by name (API key)."
method: DELETE
path: "/v1/sandboxes/by-name/{name}"
tags: ["sandboxes"]
---

# DELETE /v1/sandboxes/by-name/:name — destroy a sandbox by name (API key).

`DELETE /v1/sandboxes/by-name/{name}`

Stop and permanently destroy a sandbox selected by its organization-scoped name.

## Path parameters

- `name` string, required

## Response `200`

Sandbox destroyed

- MessageResponse — Simple message response for operations without a body.
  - `message` string, required

## Other responses

- `401` — Unauthorized
- `404` — Sandbox not found
- `502` — Orchestrator unreachable

---

[API](https://skmtc.dev/microsandbox/apis/microsandbox-api.md) · [All operations](https://skmtc.dev/microsandbox/apis/microsandbox-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/microsandbox/microsandbox-api/revisions/23f2a45cb09b/schema)
