If we need to remove the ignored files, we can of course use git clean to do this; instead of the dry-run option, we pass the force option, -f:
$ git clean -Xfd Removing bin/foobar Removing test.test Removing test.txt.bak
To remove all the untracked files and not just the ignored files, use git clean -xfd. The lowercase x means we don't use the ignore rules, we just remove everything that is not tracked by Git.