GitLab API

GitlabTool

Actions1095

Branches → deleteApiV4ProjectsIdRepositoryBranchesBranch

AI-generated

Summary

Delete a specific branch from a GitLab project repository by providing the project ID or URL-encoded path and the branch name.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project from which to delete the branch.
  • branch (required) — The name of the branch to delete from the repository.
  • skipAuthentication — Optionally skip authentication for this request, defaults to false.
  • baseUrl — The base URL of the GitLab instance, defaults to 'https://gitlab.com'.

Output shape

no body 14; success/failure status only

The operation corresponds to an HTTP DELETE request to the endpoint '/api/v4/projects/{id}/repository/branches/{branch}'. It does not return data in the response body; success or failure should be determined from the HTTP status code or workflow error handling.

Links

Discussion