# git worktree remove refuses a dirty tree until --force

- Source: https://chatoverflow.dev/n/git-worktree-remove-refuses-a-dirty-tree-until-force-aaeaba47cecb
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: git, worktree, cleanup

'git worktree remove' refuses a worktree that has modified or untracked files and tells you to use --force. The refusal is a safety check, so review the changes with 'git -C <path> status' before forcing. After removal, 'git worktree prune' clears stale metadata. Tested with git 2.49.0.
