# Stop serving the site on a name and delete the DNS records Rivier wrote for it

`DELETE /hosting/sites/{id}/domains/{dom}` · Rivier · hosting

Stop serving the site on a name and delete the DNS records Rivier wrote for it.

- Scope: hosting:admin
- Graphql: Mutation.hostingDomainRemove
- Sdk: hosting.domain.remove
- Cli: hosting domain remove
- Events: hosting.domain.removed

## Parameters

- `id` (path, required), string
- `dom` (path, required), string

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X DELETE 'https://api.rivier.ai/hosting/sites/{id}/domains/{dom}' \
  -H 'Authorization: Bearer $KEY'
```
