Skip to content

Allow asynchronous delete support #96

Closed
@jgeewax

Description

@jgeewax

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()

Metadata

Metadata

Assignees

Labels

api: storageIssues related to the Cloud Storage API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions