# Remove a custom domain

`DELETE /service/@id/builder/sites/@site/domains/@hostname` · TinoPage Builder, service owner's sign-in token

Removes the domain from the website. Returns `{"removed": true}`. Send `idempotency_key` in the query.

## HTTP request

| Item | Value |
| --- | --- |
| URL | `https://api.tino.vn/service/@id/builder/sites/@site/domains/@hostname` |
| Method | `DELETE` |
| Authentication | the TinoPage Builder service owner's sign-in token (`Authorization: Bearer <token>`); the `/v1` gateway does not expose TinoPage Builder yet |
| Content-Type | — (no body) |

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | int | yes | TinoPage Builder service ID |
| `site` | path | string | yes | Website ID (UUID, `id` in the website list) |
| `hostname` | path | string | yes | Custom domain in lower case (`hostname` in the domain list) |
| `idempotency_key` | query | string | no | 8–64 characters `A-Za-z0-9._:-`: resending the same key and content returns the earlier result instead of running again |

## Example request

```bash
curl -X DELETE "https://api.tino.vn/service/100003/builder/sites/5b1e2c3d-4f5a-4b6c-8d7e-9f0a1b2c3d4e/domains/banhang.example.vn?idempotency_key=go-ten-mien-0001" \
  -H "Authorization: Bearer $TINO_TOKEN"
```

`$TINO_TOKEN` is the TinoPage Builder service owner's sign-in token. Path parameters in the example are sample values.

SDK ([SDK & examples](/en/docs/sdk)): no dedicated function yet, use `client.request("DELETE", "/service/@id/builder/sites/@site/domains/@hostname")`.

## Example response

```json
{
 "data": {
  "removed": true
 }
}
```

Sample built from the TinoPage Builder API (Tino relays the answer as is inside `data`); values are examples.
