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

git clean --dry-run

git clean -f

git clean -fd

git clean -x