A better way is to use: git clean
git clean -d -x -f
This removes untracked files, including directories (-d) and files ignored by git (-x).
Also, replace the -f argument with -n to perform a dry-run or -i for interactive mode and it will tell you what will be removed.