Created
February 25, 2021 15:56
-
-
Save alikrc/09ac914a32a5d088b0630eb34769c7d0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
# create your token with delete_repo scope | |
# https://github.com/settings/tokens/new | |
token = "" | |
userName = "alikrc" | |
repoName = "" | |
fullUrl = "https://api.github.com/repos/" + userName + "/" + repoName | |
r = requests.delete(fullUrl, auth=(userName, token)) | |
print(r.status_code) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment