git remove repository local

C++
$ rm -rf .git
$ rm -rf .git


to delete git repository from local repo (from machine)git rm -rf git
Source

Also in C++: