delete_branch
Permanently removes a remote GitLab branch after verification. Requires branch-delete permission; returns deletion result or errors for protected or missing branches.
Instructions
Delete branch from project. Use this only after confirming the branch name and intended data loss; use get_branch or list_branches before deletion and never use it to remove branch protection. The operation permanently removes a remote branch, requires branch-delete permission, and returns the deletion result or a protected-branch, missing-resource, or permission error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jmespath | No | Optional JMESPath expression filtering the JSON result before return. | |
| project_id | Yes | Project ID or complete URL-encoded path to project | |
| branch_name | Yes | Name of the branch to delete |