Skip to content

Storage: there is no way to remove labels from a bucket #3711

@theacodes

Description

@theacodes

Attempting to remove a label from a bucket does not appear to work:

    # {'example': 'label'}
    labels = bucket.labels

    if 'example' in labels:
        del labels['example']

    # {}
    bucket.labels = labels

    bucket.patch()

    # Still {'example': 'label'}
    pprint.pprint(bucket.labels)

Metadata

Metadata

Assignees

Labels

api: storageIssues related to the Cloud Storage API.backendpriority: p2Moderately-important priority. Fix may not be included in next release.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions