I've been reading the GitHub API Documentation and searching around. It seem like there's no REST API for deleting a branch in GitHub? The closes thing I found is another post on Github enterprise API delete branch after merge.
Is there a reason why that is? What is the proper way to delete a branch using REST API?
Branches are references to a commit. The documentation you seek is called Delete a reference.
Here is some more information on Git references.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With