---
title: "Remove an open tunnel on the Devbox."
method: POST
path: "/v1/devboxes/{id}/remove_tunnel"
tags: ["Devbox", "Devbox-NetworkTools"]
deprecated: true
---

# Remove an open tunnel on the Devbox.

`POST /v1/devboxes/{id}/remove_tunnel`

> **Deprecated.**

[Deprecated] Tunnels remain active until devbox is shutdown. This endpoint removes a legacy tunnel.

## Path parameters

- `id` string, required

## Request body

- DevboxTunnelParameters
  - `port` integer, required — Devbox port that tunnel will expose.

## Response `200`

OK

- EmptyRecord

## Other responses

- `400` — Tunnel not opened for requested port.
- `404` — Devbox not found.

## Changes

- **2026-01-30** `84e997ca5716` — 1 info
  - endpoint deprecated

[Change history](https://skmtc.dev/runloopai/apis/runloop-api/changes/v1/devboxes/:id/remove_tunnel/post.md)

---

[API](https://skmtc.dev/runloopai/apis/runloop-api.md) · [All operations](https://skmtc.dev/runloopai/apis/runloop-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/runloopai/runloop-api/revisions/15b7fd06098d/schema)
