---
title: "Remove a hostname from the profile"
method: DELETE
path: "/api/domains/{hostname}"
tags: ["Custom Domains"]
---

# Remove a hostname from the profile

`DELETE /api/domains/{hostname}`

## Request

- Base URL: `https://brewpage.app`
- URL: `https://brewpage.app/api/domains/{hostname}`
- Auth: API key in header `X-Owner-Token`

Removes the hostname from the profile; the slot is free at once. Remove its DNS records afterwards if you no longer need them.

## Path parameters

- `hostname` string, required

## Headers

- `X-Owner-Token` unknown, required

## Response `204`

Removed

## Other responses

- `403`: Missing token, or ADMIN_TOKEN_REQUIRED: not an admin token of a profile; DOMAIN_NEEDS_ACCOUNT: the token is in no profile: sign in at https://account.brewpage.app/tokens, press Add existing token and paste it, then repeat; OWNER_TOKEN_REVOKED or OWNER_TOKEN_EXPIRED; ACCOUNT_RESTRICTED or ACCOUNT_BLOCKED: this profile cannot add domains now
- `404`: DOMAIN_NOT_FOUND: the hostname is not in this profile; FEATURE_DISABLED: custom domains are not available right now
- `409`: DOMAIN_SUSPENDED: BrewPage suspended this domain; write to info@brewpage.app
- `429`: Rate limited: wait Retry-After (= retryAfterSeconds)

## Changes

- **2026-11-21** `19a6c5561e70`: 4 info
  - added the optional property `level` to the response with the `403` status
  - added the optional property `level` to the response with the `404` status
  - added the optional property `level` to the response with the `409` status
  - added the optional property `level` to the response with the `429` status
- **2026-11-11** `957711dab4b5`: 8 info
  - added the optional property `challengeUrl` to the response with the `403` status
  - added the optional property `challengeUrl` to the response with the `404` status
  - added the optional property `challengeUrl` to the response with the `409` status
  - added the optional property `challengeUrl` to the response with the `429` status
  - …4 more
- **2026-11-10** `e34e8877bb89`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/brewpage/apis/brewpage-api/changes/api/domains/:hostname/delete.md)

---

[API](https://skmtc.dev/brewpage/apis/brewpage-api.md) - [All operations](https://skmtc.dev/brewpage/apis/brewpage-api/llms.txt) - [OpenAPI document](https://skmtc.dev/brewpage/apis/brewpage-api/revisions/78d2720a18a9?raw)
