- Notifications
You must be signed in to change notification settings - Fork676
Open
Labels
Description
Description of the problem, including code/CLI snippet
The API documentationexamples suggest that a release can be deleted directly:
# via its tag name from project attributesrelease=project.releases.delete('v1.2.3')# delete object directlyrelease.delete()
However when I userelease.delete()
directly I get the following error:
'ProjectRelease' object has no attribute 'delete'
Looking at code Isee thatProjectRelease
only uses theSaveMixin
andRestObject
Mixins, but not theDeleteMixin
orObjectDeleteMixin
. (thoughProjectRegistryTagManager
does use theDeleteMixin
so release can deleted using the first example).
It's not clear to me if documentation example should fix to remove direct call, or ifProjectRelease
updated to include the use of a Delete Mixin....
Expected Behavior
Directly delete an release object withrelease.delete()
Actual Behavior
Fails with:'ProjectRelease' object has no attribute 'delete'
Specifications
- python-gitlab version: 6.2.0
- Gitlab server version (or gitlab.com): GitLab.com