As the other guys answer this question, I put the commands to delete the folder , remove the worktree and remove the branch here:
first, list all your work data to double check ...
$ git worktree list
then delete the working folder folder
$ rm -rf ../path/to/worktree
after that remove the worktree itself
$ git worktree prune
if you have more than one working group, the above command only truncates the working line, that its path no longer exists, so do not worry!
finally delete the branch (same branch name as the working line)
$ git branch -D <branch-name>
source share