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

# Close a tunnel

> Closes an active tunnel

Closes an active tunnel

### Path parameters

<ParamField path="tunnelId" type="string" required>
  Unique tunnel identifier
</ParamField>

### Response

`SuccessResponse`

<ResponseField name="success" type="boolean" />

### Status codes

| Code  | Meaning       |
| ----- | ------------- |
| `200` | Tunnel closed |
| `401` | —             |
| `404` | —             |

<RequestExample>
  ```bash cURL theme={null}
  curl --request DELETE \
    --url 'https://api.sandbox.stateset.app/api/v1/tunnels/{tunnelId}' \
    --header 'Authorization: Bearer YOUR_API_KEY'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true
  }
  ```
</ResponseExample>
