Skip to main content
github.deleteBranch deletes one repository branch.
automations/delete-github-branch.automation.ts
Provide the repository and branch name without the refs/heads/ prefix. Returns {} after deletion. GitHub rejects deletion of a protected branch or the repository’s default branch. Requires Contents write permission.