6

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!

Leeren
  • 1,659
  • 1
  • 18
  • 29

1 Answers1

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
Community
  • 1
  • 1
VonC
  • 1,129,465
  • 480
  • 4,036
  • 4,755