---
title: "branches discard"
description: "Discard a sandbox branch"
canonical: "https://pgbeam.com/docs/cli/branches/discard"
last-updated: "2026-09-14T19:37:21.000Z"
---

# branches discard

> Discard a sandbox branch

URL: https://pgbeam.com/docs/cli/branches/discard

Marks an ephemeral sandbox branch as discarded for teardown.

## Usage

## Options

Option

Description

Required

Default

`<id>`

Yes

-

`--yes`, `-y`

Skip the confirmation prompt (useful for scripts and CI/CD)

No

-

All global options (`--token`, `--profile`,
`--project`, `--org`, `--json`, `--no-color`, `--no-trunc`, `--debug`) are
also available on this command.

## Examples

## Output

Renders a human-readable table or detail view by default; pass `--json` for the raw API response.