Go to the directory where you want to delete your .git folder then type in cmd rmdir /S .git.
rm -rf .git*
// On windows del /F /S /Q /A .git
// On windows To remove git from project del /F /S /Q /A .git