---
title: "DELETE /api/sites/{siteId}/custom-hostnames"
method: DELETE
path: "/api/sites/{siteId}/custom-hostnames"
tags: ["customHostnames"]
---

# DELETE /api/sites/{siteId}/custom-hostnames

`DELETE /api/sites/{siteId}/custom-hostnames`

## Request

- Base URL: `https://app.sitenoar.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://app.sitenoar.dev/api/sites/{siteId}/custom-hostnames`
- Auth: API key in cookie `wos-session`

## Path parameters

- `siteId` string, required

## Request body

- object
  - `hostnames` string[], required

## Response `200`

Success

- object
  - `failures` object[], required
    - `error` string, required
    - `hostname` string, required
    - `suggestion` string, required
  - `removed` string[], required

## Other responses

- `400`: BadRequest
- `401`: Unauthorized
- `402`: PaymentRequired
- `403`: Forbidden
- `404`: NotFound
- `409`: Conflict
- `410`: Gone
- `413`: PayloadTooLarge
- `422`: UnprocessableEntity
- `429`: TooManyRequests
- `500`: InternalServerError
- `502`: BadGateway
- `503`: ServiceUnavailable

---

[API](https://skmtc.dev/sitenoar/apis/site-no-ar-api.md) · [All operations](https://skmtc.dev/sitenoar/apis/site-no-ar-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sitenoar/apis/site-no-ar-api/revisions/c3a45f3f5ac6?raw)
