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,931
  • 2
  • 20
  • 31

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,262,500
  • 529
  • 4,410
  • 5,250