Check out example codes for "how to delete git repo locally". It will help you in understanding the concepts better.
Code Example 1
$ rm -rf .git to delete git repository from local repo (from machine)
Code Example 2
git rm -rf git
Learn ReactJs, React Native from akashmittal.com