how to delete git repository code example
Example 1: delete git repository command line
rm -rf .git
Example 2: delete git
rm -rf .git
Example 3: delete github repository without browser
winpty curl -X DELETE -H 'Authorization: token [GENERATED_TOKEN]' https://api.github.com/repos/[USER_NAME]/[REPO_NAME]
https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line
Example 4: delete a github repository using bash
winpty curl -X DELETE -H 'Authorization: token [GENERATED_TOKEN]' https://api.github.com/repos/[USER]/[REPO_NAME]
https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line
Example 5: how to delete repository in github
>> Login github
>> Profile
>> Your repositories
>> Select repositories
>> Goto Settings
>> Delete this repository
>> Please type <repository name> to confirm.