git rm all files code example
Example 1: delete git
rm -rf .git
Example 2: git remove folder remotely
git rm -r --cached <folder>
git commit -m "Removed Folder"
git push origin master
Example 3: git rm cached
$ git rm --cached filename
rm -rf .git
git rm -r --cached <folder>
git commit -m "Removed Folder"
git push origin master
$ git rm --cached filename