---
title: "Stop sharing this port. Its open connections are closed before this answers."
method: DELETE
path: "/v1/sandboxes/{id}/previews/{port}"
tags: ["previews"]
---

# Stop sharing this port. Its open connections are closed before this answers.

`DELETE /v1/sandboxes/{id}/previews/{port}`

## Request

- Base URL: `https://api.withruntime.com`
- URL: `https://api.withruntime.com/v1/sandboxes/{id}/previews/{port}`
- Auth: HTTP bearer

## Path parameters

- `id` string, required: Resource identifier (UUID).
- `port` string, required: The previewed port.

## Headers

- `Idempotency-Key` string

## Response `200`

Success

- object
  - `id` string, required
  - `sandboxId` string, required
  - `port` integer, required
  - `deleted` true, required

## Other responses

- `default`: Error

---

[API](https://skmtc.dev/withruntime/apis/runtime-cloud-api.md) · [All operations](https://skmtc.dev/withruntime/apis/runtime-cloud-api/llms.txt) · [OpenAPI document](https://skmtc.dev/withruntime/apis/runtime-cloud-api/revisions/e76cd8f6dcb4?raw)
