how to remove a git repository code example

Example 1: delete git repository command line

rm -rf .git

Example 2: how to remove git repository from a project

rm -rf .git

Example 3: how to delete repository in github

#step by step Process
>> Login github 
>> Profile # right side of the page profile icon
>> Your repositories 
>> Select repositories 
>> Goto Settings # repository level settings
>> Delete this repository
>> Please type <repository name> to confirm.

Example 4: delete git

git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/Leonuch/flex.git
git push -u origin master