---
title: "Delete (fails if routes reference it)"
method: DELETE
path: "/v1/destinations/{destinationId}"
tags: ["destinations"]
---

# Delete (fails if routes reference it)

`DELETE /v1/destinations/{destinationId}`

## Request

- Base URL: `https://postbag.dev`
- URL: `https://postbag.dev/v1/destinations/{destinationId}`
- Auth: HTTP bearer

Fails with 409 while a route still points at this destination — delete or repoint those routes first.

## Path parameters

- `destinationId` string, required

## Response `204`

deleted

## Other responses

- `400`: Error
- `401`: Error
- `403`: Error
- `404`: Not found
- `409`: Error
- `422`: Error

---

[API](https://skmtc.dev/postbag/apis/postbag-api.md) · [All operations](https://skmtc.dev/postbag/apis/postbag-api/llms.txt) · [OpenAPI document](https://skmtc.dev/postbag/apis/postbag-api/revisions/3da976524695?raw)
