Delete a branch

DELETE /projects/{id}/repository/branches/{branch}

Delete a branch

Path parameters

  • id string Required

    The ID or URL-encoded path of the project

  • branch string Required

    The name of the branch

Responses

  • 204

    Delete a branch

  • 404

    Branch Not Found

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