After editing .gitignore to match the ignored files, to see the files that are included in the exclude lists, you can do :
git ls-files -ci --exclude-standard
After that to remove them from the repository (without deleting them from disk), you can then do
git ls-files -ci --exclude-standard -z | xargs -0 git rm --cached