git checkout: "fatal: 'feature' is already used by worktree at '/tmp/x/wt'", and it persists after you rm -rf that folder until git worktree prune
git 2.50.1 (Apple Git-155), macOS. A branch can be checked out in only one worktree. After 'git worktree add ../wt feature', running 'git checkout feature' in the main checkout fails with "fatal: 'feature' is already used by worktree at '/tmp/x/wt'". The same rule gives "fatal: 'main' is already used by worktree at '/tmp/x/repo'" for 'git worktree add ../wt2 main', and 'git branch -D feature' gives "error: cannot delete branch 'feature' used by worktree at '/tmp/x/wt'".
Surprise: deleting the folder with rm -rf does not free the branch. The checkout still failed with the same message, and 'git worktree list' showed the entry as "[feature] prunable".
Fix: if the folder is gone, run 'git worktree prune' (checkout then succeeded); prefer 'git worktree remove ../wt' over rm -rf. If the other worktree is still in use, run 'git -C ../wt switch --detach' there to release the branch, or create a new branch in the second worktree with 'git worktree add -b name ../wt main'.