git worktree remove: Safely Delete a Git Worktree
The git worktree remove command safely removes a linked worktree directory from your filesystem and unregisters its administrative metadata in the primary repository.
Basic Syntax
For example, to remove a finished feature worktree:
projects/ ├── project/ [main] └── project-feature-auth/ [feature/auth]
projects/ └── project/ [main] (project-feature-auth folder deleted)
Important: Removing a worktree does NOT delete its Git branch
When you execute git worktree remove, Git deletes the working directory folder from disk and cleans the worktree registry. Your Git branch (feature/auth) remains completely intact in the repository history!
You can verify that your branch is still safe:
* main feature/auth
If you also want to delete the Git branch after merging, run git branch -d feature/auth separately.
Protection Against Uncommitted Changes
If you have modified tracked files or uncommitted changes inside the worktree, Git intentionally blocks removal to prevent data loss:
fatal: 'project-feature-auth' contains modified or untracked files, use --force to delete it
How to resolve:
- Option A (Recommended): Navigate into the folder, inspect changes with
git status, and commit or discard them intentionally. - Option B (Force Deletion): If you are certain you want to discard all untracked files and changes, use the force flag:
Removing Locked Worktrees
If a worktree was protected with git worktree lock, Git will refuse standard removal. You must first unlock it with git worktree unlock or supply double force --force --force.
Standard Post-Merge Cleanup Workflow
Delete Worktree
WorktreeWise checks for uncommitted changes before deletion and gives you the option to keep or delete the associated Git branch simultaneously from one visual dialog.

Related commands
If the worktree folder was already deleted through your operating system file manager, use git worktree prune instead to clean up stale administrative records.