---
title: "Delete Tunnel Endpoint"
method: DELETE
path: "/api/v1/tunnel/{tunnel_id}"
tags: ["Tunnel"]
---

# Delete Tunnel Endpoint

`DELETE /api/v1/tunnel/{tunnel_id}`

Delete a tunnel and disconnect any active clients.

## Path parameters

- `tunnel_id` string, required

## Response `200`

Successful Response

- DeleteTunnelResponse — Response for tunnel deletion.
  - `success` boolean, required — Whether deletion succeeded
  - `message` string, required — Status message

## Other responses

- `401` — Authorization failed
- `422` — Invalid request data

---

[API](https://skmtc.net/primeintellect/apis/pi-api.md) · [All operations](https://skmtc.net/primeintellect/apis/pi-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/primeintellect/pi-api/versions/60efc9b3ff2a/schema)
