PgBeam Docs
branches

branches discard

Discard an ephemeral database sandbox branch

Discard an ephemeral database sandbox branch, releasing its resources. This action cannot be undone. A confirmation prompt is shown unless --yes is passed.

Usage

pgbeam branches discard <id> [flags]

Options

OptionDescriptionRequiredDefault
<id>Branch ID to discardYes-
--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

# Discard a branch (with confirmation)
pgbeam branches discard brn_xxx

# Discard without confirmation (CI/CD)
pgbeam branches discard brn_xxx --yes

Output

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

On this page