---
title: "Remove a custom domain from a frontend"
method: DELETE
path: "/projects/{id}/frontends/{frontendId}/domains/{domain}"
tags: ["Frontends"]
---

# Remove a custom domain from a frontend

`DELETE /projects/{id}/frontends/{frontendId}/domains/{domain}`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/projects/{id}/frontends/{frontendId}/domains/{domain}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Detaches the domain. A domain other domains redirect to cannot be
removed until those redirects are removed or retargeted.

## Path parameters

- `id` string, uuid, required
- `frontendId` string, uuid, required
- `domain` string, required

## Response `204`

Custom domain detach scheduled

## Other responses

- `401`: Unauthorized
- `403`: Project not owned by the caller
- `404`: Frontend or custom domain not found
- `409`: Other domains of the frontend redirect to this one, and the message names them, or the domain switched TLS mode while the request ran
- `500`: Failed to remove the custom domain

## Changes

- **2026-10-26** `4b0676e06128`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/projects/:id/frontends/:frontendId/domains/:domain/delete.md)

---

[API](https://skmtc.dev/kong/apis/volcano-api.md) - [All operations](https://skmtc.dev/kong/apis/volcano-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/volcano-api/revisions/84c4488f91e9?raw)
