Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow wildcard in delete_blobs with a full path #993

Open
Tom3652 opened this issue Feb 18, 2023 · 0 comments
Open

Allow wildcard in delete_blobs with a full path #993

Tom3652 opened this issue Feb 18, 2023 · 0 comments
Labels
api: storage Issues related to the googleapis/python-storage API. priority: p3 Desirable enhancement or fix. May not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@Tom3652
Copy link

Tom3652 commented Feb 18, 2023

Is your feature request related to a problem? Please describe.

Today i have to list all the files in my bucket and then only delete the ones with the name that matches a specific condition.
This is really painful when you have millions of results, you can't delete directly without fetching using wildcards.

Describe the solution you'd like

I would like a method equivalent to this one in gsutil : gsutil rm -r gs://bucket/folder/{WILDCARD-A}/folderA/{WILDCARD-B}/folderB

Describe alternatives you've considered

gsutil is working fine to do this but is slow and i need it in python for my AWS lambda.

Additional context
None

@product-auto-label product-auto-label bot added the api: storage Issues related to the googleapis/python-storage API. label Feb 18, 2023
@ddelgrosso1 ddelgrosso1 added type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. priority: p3 Desirable enhancement or fix. May not be included in next release. labels Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the googleapis/python-storage API. priority: p3 Desirable enhancement or fix. May not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

2 participants