capabilities.work

Delete all merged branches in a project

One step with GitLab. We can help you get access.

Get something done

Delete all merged branches in a project

with GitLab · Software Construction Management
Works with AI assistants

Use GitLab: its GitLab Projects API lets you delete all merged branches in a project in a single step (DELETE /api/v4/projects/{id}/repository/merged_branches). GitLab also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.

  • How do I clean up every branch that has already been merged in a GitLab project?
  • Can I bulk-remove merged branches from a repository in one call?
Say it to your AI assistant
  • Delete all merged branches in project {id}.
  • Clean up the already-merged branches from the {id} repository.
For your developer

DELETE /api/v4/projects/{id}/repository/merged_branches in GitLab Projects API. Full spec on APIs.io.