---
title: "db delete"
description: "Delete a database"
canonical: "https://pgbeam.com/docs/cli/db/delete"
last-updated: "2026-10-30T13:32:17.000Z"
---

# db delete

> Delete a database

URL: https://pgbeam.com/docs/cli/db/delete

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

Removes a database registration from the project.

## Usage

```bash
pgbeam db 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 database
pgbeam db delete

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

## Output

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