Delete all merged branches

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://bump.sh/demo/doc/gitlab/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "Gitlab (Unofficial) MCP server": {
    "url": "https://bump.sh/demo/doc/gitlab/mcp"
  }
}

Close
DELETE /projects/{id}/repository/merged_branches

Delete all merged branches

Path parameters

  • id string Required

    The ID or URL-encoded path of the project

Responses

  • 202

    202 Accepted

  • 404

    404 Project Not Found

DELETE /projects/{id}/repository/merged_branches
curl \
 --request DELETE 'https://www.gitlab.com/api/v4/projects/{id}/repository/merged_branches' \
 --header "Private-Token: $API_KEY"