[check which files would be deleted]

git clean -nd .

[deletes untracked files and directories. Omit the f or d to delete only dirs or files respectively]

git clean -fd

https://git-scm.com/docs/git-clean