> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rustybrowser.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Session

> Close and destroy a browser

## Description

Closes the browser and releases its resources. Always delete browsers when finished.

## Authentication

Open-source deployments do not require authentication by default. If your server config enables `X-API-Key`, include that header with the request.

## Path Parameters

<ParamField path="id" type="string" required>
  The browser ID to close.
</ParamField>

## Response

<ResponseField name="deleted" type="string">
  The ID of the browser that was deleted.
</ResponseField>

## Example

```bash theme={null}
curl -X DELETE http://localhost:8080/browsers/exc-b072ebd8-2dc9-4353-b894-123911d5399f/
```

<ResponseExample>
  ```json 200 theme={null}
  {
    "deleted": "exc-b072ebd8-2dc9-4353-b894-123911d5399f"
  }
  ```
</ResponseExample>

<Warning>
  Idle browsers keep consuming local compute and agent capacity until deleted. Always close them when your task is complete.
</Warning>
