- Notifications
You must be signed in to change notification settings - Fork674
Closed
Description
Description of the problem, including code/CLI snippet
I'm trying to delete all labels from a given project using this code:
# connect to Gitlabgl=gitlab.Gitlab(GITLAB_URL,private_token=GITLAB_TOKEN)gl.auth()# Get GitLab projectgl_project=gl.projects.get(GITLAB_PROJECT_ID)# delete ALL labelsforgl_labelingl_project.labels.list(all=True):gl_label.delete()
The token works since I've used it successfully to do some other API calls before. The same user is able to delete labels manually via Web-UI.
Expected Behavior
I would expect the code not to throw a `gitlab.exceptions.GitlabDeleteError: 404: 404 Label Not Found'
Actual Behavior
Thedelete call fails with agitlab.exceptions.GitlabDeleteError: 404: 404 Label Not Found.
Specifications
- python-gitlab version: 3.1.1
- API version you are using (v3/v4): v4
- Gitlab server version (or gitlab.com): GitLab Enterprise Edition 14.5.0-ee
Metadata
Metadata
Assignees
Labels
No labels