Path parameters
-
The ID or URL-encoded path of the project.
-
The name of the branch
DELETE
/projects/{id}/repository/branches/{branch}
curl \
--request DELETE 'https://www.gitlab.com/api/v4/projects/gitlab-org/gitlab/repository/branches/{branch}' \
--header "Private-Token: $API_KEY"