-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
api: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.
Milestone
Description
If I want to delete all the objects in a bucket, I have to figure out the threading on my own to make this quick... I don't care about the response for the most part...
for key in bucket:
key.delete(async=True)
# or key.delete_async()
While we're at it, it might be nice to have an "empty bucket" method:
bucket = connection.get_bucket('...')
bucket.delete_all_keys()
jacobg
Metadata
Metadata
Assignees
Labels
api: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.