---
title: "Release a local sandbox"
method: DELETE
path: "/local-sandbox/{local_sandbox_id}"
tags: ["local-sandbox"]
---

# Release a local sandbox

`DELETE /local-sandbox/{local_sandbox_id}`

## Request

- Base URL: `https://api.klavis.ai`
- URL: `https://api.klavis.ai/local-sandbox/{local_sandbox_id}`
- Auth: HTTP bearer

Releases the local sandbox VM and all associated servers, cleaning up the shared environment.

## Path parameters

- `local_sandbox_id` string, required: The ID of the local sandbox to release

## Query parameters

- `is_ttl` boolean: Flag indicating if this is a TTL release task

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

## Changes

- **2026-02-28** `87b005c5acf0`: 1 info
  - added the new optional `query` request parameter `is_ttl`
- **2026-02-15** `1497930e0a0e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/klavis-ai/apis/klavis-ai-https-www-klavis-ai/changes/local-sandbox/:local_sandbox_id/delete.md)

---

[API](https://skmtc.dev/klavis-ai/apis/klavis-ai-https-www-klavis-ai.md) - [All operations](https://skmtc.dev/klavis-ai/apis/klavis-ai-https-www-klavis-ai/llms.txt) - [OpenAPI document](https://skmtc.dev/klavis-ai/apis/klavis-ai-https-www-klavis-ai/revisions/1f05ced7280f?raw)
