I'm currently running a bash script to automatically create a remote repository on Github using curl. I was wondering if there was any way of also deleting remote Github repositories on the command line as well. Any help would be appreciated!
Asked
Active
Viewed 1,569 times
1 Answers
4
You could use the GitHub API "Delete repository" for that.
But you will need to use a oauth token with the appropriate scope (as mentioned here)
You can see an example in this question:
curl -X DELETE -H 'Authorization: token xxx' https://api.github.com/repos/USERNAME/REPO-NAME
-
1@FrankenstineJoe I believe you can import your curl command into Postman: https://www.daniellittle.xyz/curl-to-postman/ or https://stackoverflow.com/a/37068925/6309 – VonC Dec 04 '17 at 12:16
-
1@VonC That really helped ,Thanks so much – Frankenstine Joe Dec 06 '17 at 06:06