# basemodo domains remove

Stop the App answering at a custom domain, and forget its certificate.

```sh
basemodo domains remove [OPTIONS] <HOSTNAME>
```

## Arguments

- `HOSTNAME` (required): The hostname, as added.
- `--app <APP>`: The App whose custom domains to change. Default: the one named after the current folder.

Like every command, it also takes the [global options](https://basemodo.com/docs/cli#global-options) `--json` and `--api-url`.

## Examples

Remove a custom domain:

```sh
basemodo domains remove app.example.com
```

## Output

With `--json`, it prints {"app", "domains": [{"hostname", "url", "status", "records", "problem", "created_at", "verified_at", "certificate_expires_at", "next_attempt_at"}]}.

## From an agent

Basemodo's [MCP](https://basemodo.com/docs/mcp) serves it as the tool [`domains_remove`](https://basemodo.com/docs/mcp/tools/domains_remove). It changes things, so an agent's client may ask you before it runs. Its arguments are the command's, named as JSON keys: `hostname` (text), `app` (text). It answers what the command prints with `--json`.

## Explained in

- [Domains](https://basemodo.com/docs/domains)