If you've added a file into gitignore and want to remove it completely from the repository
xxxxxxxxxx
git rm --cached <file>
git rm -r --cached <folder>
This command will not delete the local file on your computer.
This command will delete the file for other users after a pull.