branches
branches discard
Discard a sandbox branch
Marks an ephemeral sandbox branch as discarded for teardown.
Usage
pgbeam branches discard <id> [flags]Options
| Option | Description | Required | Default |
|---|---|---|---|
<id> | Yes | - | |
--yes, -y | Skip the confirmation prompt (useful for scripts and CI/CD) | No | - |
Global options
All global options (--token, --profile,
--project, --org, --json, --no-color, --no-trunc, --debug) are
also available on this command.
Examples
# Discard a sandbox branch
pgbeam branches discard
# Output as JSON
pgbeam branches discard --jsonOutput
Renders a human-readable table or detail view by default; pass --json for the raw API response.