git clean

Remove files not tracked by Git from the working tree. More information: https://git-scm.com/docs/git-clean.

git clean

git clean {{-i|--interactive}}

git clean --dry-run

git clean {{-f|--force}}

git clean {{-f|--force}} -d

git clean -x