glab stack delete

Delete a stack. (EXPERIMENTAL)

Synopsis

Delete a stacked diff.

Removes the stack’s local metadata from the .git/stacked directory. Use this command to clean up stacks for merged or abandoned merge requests. Branches, commits, and merge requests are not affected.

When stack-name is omitted, choose from the list of all stacks.

This feature is an experiment and is not ready for production use. It might be unstable or removed at any time. For more information, see https://docs.gitlab.com/policy/development_stages_support/.

glab stack delete [<stack-name>] [flags]

Examples

console
# Interactively pick from the list of available stacks
glab stack delete

# Delete a specific stack by name
glab stack delete <stack-name>

# Delete a specific stack without the confirmation prompt
glab stack delete <stack-name> -y

Options

  -y, --yes   Skip the confirmation prompt.

Options inherited from parent commands

  -h, --help          Show help for this command.
  -R, --repo string   Select another repository. You can use either OWNER/REPO or GROUP/NAMESPACE/REPO. The full URL or Git URL is also accepted.