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

# Remove an open tunnel on the Devbox.

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

Remove a previously opened tunnel on the Devbox.

## 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.

---

[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/5f33221208c1/schema)
