---
title: "Delete host port mapping for a container port"
method: DELETE
path: "/v1/ports/mappings/{port}"
tags: ["ports"]
---

# Delete host port mapping for a container port

`DELETE /v1/ports/mappings/{port}`

Removes a mapping and broadcasts an SSE event with host_port=0

## Path parameters

- `port` integer, required

## Response `200`

Mapping deleted

- object

## Other responses

- `400` — Invalid port

## Changes

- **2025-08-08** `bdd794bb1f17` — 1 info
  - endpoint added
- **2025-07-18** `21270d5158bd` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/wandb/apis/catnip-container-api/changes/v1/ports/mappings/:port/delete.md)

---

[API](https://skmtc.dev/wandb/apis/catnip-container-api.md) · [All operations](https://skmtc.dev/wandb/apis/catnip-container-api/llms.txt) · [OpenAPI document](https://skmtc.dev/wandb/apis/catnip-container-api/revisions/a075b0fa501a?raw)
