---
title: "Detach a sandbox from a browser (beta)"
method: DELETE
path: "/api/v2/sandboxes/browsers/{name}/attachments/{attachment_id}"
tags: ["sandboxes"]
---

# Detach a sandbox from a browser (beta)

`DELETE /api/v2/sandboxes/browsers/{name}/attachments/{attachment_id}`

## Request

- Base URL: `https://api.smith.langchain.com`
- URL: `https://api.smith.langchain.com/api/v2/sandboxes/browsers/{name}/attachments/{attachment_id}`
- Auth: one of:
  - API key in header `X-API-Key`
  - API key in header `X-Tenant-Id`
  - HTTP bearer

Beta: close the window and stop the sandbox from making new connections to the browser.

## Path parameters

- `name` string, required
- `attachment_id` string, required

## Response `204`

No Content

## Other responses

- `404`: Browser or attachment not found
- `501`: The browser beta is not enabled

## Changes

- **2026-10-18** `0593afc85ebc`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/langchain-ai/apis/langsmith/changes/api/v2/sandboxes/browsers/:name/attachments/:attachment_id/delete.md)

---

[API](https://skmtc.dev/langchain-ai/apis/langsmith.md) - [All operations](https://skmtc.dev/langchain-ai/apis/langsmith/llms.txt) - [OpenAPI document](https://skmtc.dev/langchain-ai/apis/langsmith/revisions/7a01c01f75e8?raw)
