---
title: "replicas delete"
description: "Remove a read replica"
canonical: "https://pgbeam.com/docs/cli/projects/replicas/delete"
last-updated: "2026-10-29T19:01:20.000Z"
---

# replicas delete

> Remove a read replica

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

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

Remove a read replica from a database. PgBeam will stop routing queries to this replica. The upstream replica server is not affected. A confirmation prompt is shown unless `--yes` is passed.

## Usage

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

## Options

| Option                  | Description                              | Required | Default |
| ----------------------- | ---------------------------------------- | -------- | ------- |
| `<id>`                  | ID of the replica to remove              | Yes      | -       |
| `--database-id <value>` | ID of the database that owns the replica | Yes      | -       |
| `--yes`, `-y`           | Skip the confirmation prompt             | No       | `false` |

> **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 replica (with confirmation)
pgbeam replicas delete rep_xxx --database-id db_xxx

# Delete without confirmation
pgbeam replicas delete rep_xxx --database-id db_xxx --yes
```

## Output

Prints a success message confirming the replica was deleted.