PgBeam Docs
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

OptionDescriptionRequiredDefault
<id>ID of the database to deleteYes-
--yes, -ySkip the confirmation prompt (useful for scripts and CI/CD)Nofalse

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 --yes

Output

Prints a success message confirming the database was deleted. Exits with a non-zero code if the database is not found.

On this page