---
title: "Delete a TCP port forward"
method: DELETE
path: "/spaces/{spaceId}/cubes/{cubeId}/tcp-mappings/{mappingId}"
tags: ["TCP mappings"]
---

# Delete a TCP port forward

`DELETE /spaces/{spaceId}/cubes/{cubeId}/tcp-mappings/{mappingId}`

## Request

- Base URL: `https://krova.cloud/api/v1`
- URL: `https://krova.cloud/api/v1/spaces/{spaceId}/cubes/{cubeId}/tcp-mappings/{mappingId}`
- Auth: API key in header `X-API-KEY`

## Path parameters

- `spaceId` string, required
- `cubeId` string, required
- `mappingId` string, required

## Response `200`

Deleted

- object
  - `success` boolean, required

## Other responses

- `404`: Resource not found
- `409`: Refused because the change conflicts with the Cube's current state, for example the port is already in use or the mapping is already being removed. One such conflict is temporary: in the last stretch of a move of the Cube to another server the change is refused with the error "This cube is being moved to another server. Try again in a minute." Nothing was changed then, and the same request is accepted once the move ends.

---

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