db
db delete
Delete a database
Permanently delete a database connection from the linked project. This removes
the database configuration from PgBeam — it does not affect the upstream
PostgreSQL server. A confirmation prompt is shown unless --yes is passed.
Usage
pgbeam db delete <id> [flags]Options
| Option | Description | Required | Default |
|---|---|---|---|
<id> | ID of the database to delete | Yes | - |
--yes, -y | Skip the confirmation prompt (useful for scripts and CI/CD) | No | false |
Global options
All global options (--token, --profile,
--project, --org, --json, --no-color, --debug) are also available on
this command.
Examples
# Delete a database (with confirmation)
pgbeam db delete db_xxx
# Delete without confirmation
pgbeam db delete db_xxx --yesOutput
Prints a success message confirming the database was deleted. Exits with a non-zero code if the database is not found.