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
| 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 (--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 --yesOutput
Prints a success message confirming the replica was deleted.