GitLab API

GitlabTool

Actions1095

Branches → deleteApiV4ProjectsIdRepositoryMergedBranches

AI-generated

Summary

Delete all merged branches from a specified GitLab project repository.

Inputs

  • id (required) — The ID or URL-encoded path of the project whose merged branches you want to delete.
  • Skip Authentication — Optionally skip authentication (default is false).
  • baseUrl — The base URL of the GitLab instance, defaulting to https://gitlab.com.

Output shape

no body — success/failure only

The operation sends a DELETE request to the endpoint /api/v4/projects/{id}/repository/merged_branches. It does not return data in the response body; success or failure is indicated by the HTTP response status.

Examples

Example 1: Delete merged branches in project with ID 'my-group/my-project'

Set 'id' to 'my-group/my-project' and execute the operation to remove all merged branches from that GitLab repository.

Links

Discussion