pub fn remove_worktree( repo_root: &Path, worktree_path: &Path, force: bool, ) -> Result<(), WorktreeError>
Removes a worktree via git worktree remove (optionally --force) and prunes worktree metadata.
git worktree remove
--force