Remove worktree

In addition to normal worktree removal, there are options available to force it:

  • unclean - normal removal can fail when there are uncommited changes in a worktree
  • locked - locked worktrees must be unlocked before removal. This option allows you to ignore the unlocking step

See git-worktree docs for more information.