Skip to content

Latest commit

 

History

History
56 lines (41 loc) · 1.55 KB

delete.md

File metadata and controls

56 lines (41 loc) · 1.55 KB
title `glab stack delete`
stage AI Clients
group Developer Clients
info To determine the technical writer assigned to the Stage/Group associated with this page, see <https://handbook.gitlab.com/handbook/product/ux/technical-writing/#assignments>

Delete a stack. (EXPERIMENTAL)

Synopsis

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.

If you do not provide a stack name, the command shows a list of stacks for you to choose from.

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

# 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.