how to remove git repository from a project

C++
rm -rf .git*
rm -rf .git//Windows:
del /F /S /Q /A .git

rmdir .git
Source

Also in C++: