PgBeam Docs
projectsreplicas

replicas delete

Remove a read replica

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

pgbeam replicas delete <id> [flags]

Options

OptionDescriptionRequiredDefault
<id>ID of the replica to removeYes-
--database-id <value>ID of the database that owns the replicaYes-
--yes, -ySkip the confirmation promptNofalse

Global options

All global options (--token, --profile, --project, --org, --json, --no-color, --debug) are also available on this command.

Examples

# 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.

On this page