---
title: "Remove the custom domain"
description: "Owner only. Removes the computer's custom domain. The hostname stops serving within seconds and is free to connect again once its certificate is deleted, usually within a minute."
canonical: "https://www.cool.computer/docs/api-reference/domains/remove-the-custom-domain"
---
# Remove the custom domain

> Owner only. Removes the computer's custom domain. The hostname stops serving within seconds and is free to connect again once its certificate is deleted, usually within a minute.

```http
DELETE https://api.cool.computer/api/computers/{id}/domain
```

Owner only. Removes the computer's custom domain. The hostname stops serving within seconds and is free to connect again once its certificate is deleted, usually within a minute. The computer's own address is unchanged. Deleting the computer removes its domain the same way.

## Authorization

- A Cool Computers API key, user access token, or claimed agent access token in the Authorization header. Follow https://www.cool.computer/auth.md for agent registration and https://www.cool.computer/authentication.md for direct user credentials.

## Parameters

- `id` (path, string, at least 1 characters, required): The computer's name, such as agent-atlas, or its id (cmp_…). Every caller may use either, the computer's own runtime token included.

## Responses

- `204`: The domain is being removed.
- `401`: Unauthorized.
- `404`: Not Found. `domain_not_found`: the computer has no custom domain.
- `429`: Too Many Requests. If the problem code is api_request_rate_exceeded, wait for Retry-After seconds; other problem codes describe a separate limit.
- `500`: Internal Server Error.
- `503`: Service Unavailable. `artifacts_unavailable` means publishing, and with it custom domains, is not configured on this server.
- `default`: A machine-readable API error with a stable code and recovery instruction.

An error is an `application/problem+json` document with a stable `code`; [API errors](/docs/api-reference/errors) says how to handle one.

## Example

```sh
curl -X DELETE "https://api.cool.computer/api/computers/$PARAM_ID/domain" \
  -H "authorization: Bearer $TOKEN"
```
