---
title: "domains delete"
description: "Delete a custom domain"
canonical: "https://pgbeam.com/docs/cli/projects/domains/delete"
last-updated: "2026-10-29T19:01:20.000Z"
---

# domains delete

> Delete a custom domain

URL: https://pgbeam.com/docs/cli/projects/domains/delete

{/* Auto-generated from CLI commands. Do not edit. Run `pnpm generate:cli-docs` to regenerate. */}

Removes a custom domain from the project and revokes its TLS certificate.

## Usage

```bash
pgbeam domains delete <id> [flags]
```

## Options

| Option        | Description                                                 | Required | Default |
| ------------- | ----------------------------------------------------------- | -------- | ------- |
| `<id>`        |                                                             | Yes      | -       |
| `--yes`, `-y` | Skip the confirmation prompt (useful for scripts and CI/CD) | No       | -       |

> **Global options**
>
> All [global options](/docs/cli/global-options) (`--token`, `--profile`,
> `--project`, `--org`, `--json`, `--no-color`, `--no-trunc`, `--debug`) are
> also available on this command.

## Examples

```bash
# Delete a custom domain
pgbeam domains delete

# Output as JSON
pgbeam domains delete --json
```

## Output

Renders a human-readable table or detail view by default; pass `--json` for the raw API response.