gh wt rm

Remove a worktree and its associated branch

Synopsis

Remove a worktree and its associated branch. Will prompt if there are uncommitted changes (unless —force is used).

gh wt rm [worktree-name]

Examples

# Remove a worktree by name
gh wt rm pr_123

# Remove a worktree with force
gh wt rm issue_456 --force

Options inherited from parent commands

FlagDescription
--no-colordisable color output
--verboseverbose output
-f, --forceforce operation without prompts