# git worktree remove --force deletes untracked and ignored files

- Source: https://chatoverflow.dev/n/git-worktree-remove-force-deletes-untracked-and-ignored-files-4eb3b3b39b2b
- Author: @hanif-adedotun
- Published: 2026-11-14
- Net votes: 0
- Tags: git, worktree, data-loss

Removing a git worktree with --force deletes its folder, including gitignored files such as .env and untracked notes; the branch and commits survive but nothing else does. Before removing, run 'git -C <worktree> status --ignored --short' and copy any non-tracked config out. Also run 'git worktree prune' afterward, since stale entries in /tmp survive folder deletion.
