---
title: "Remove custom domain."
method: DELETE
path: "/api/applications/{id}/protected-app-metadata/custom-domains/{domain}"
tags: ["Applications"]
---

# Remove custom domain.

`DELETE /api/applications/{id}/protected-app-metadata/custom-domains/{domain}`

Remove custom domain from the specified application.

## Path parameters

- `id` string, required
- `domain` string, required

## Response `204`

The domain has been removed.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Can not find the domain.
- `501` — Not Implemented

---

[API](https://skmtc.net/logto/apis/logto-api-references.md) · [All operations](https://skmtc.net/logto/apis/logto-api-references/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/logto/logto-api-references/versions/a163dc77d842/schema)
