Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Request for new functionality
View staffing
Description
This will create a feature request which anybody can view and comment on.
Please describe your requested enhancement. Good feature requests will solve common problems or enable new use cases.
What you would like to accomplish:
According to the documentation of the [Google Cloud Storage Delete plugin][1] its necessary to use commas to separate the objects to delete.
How this might work:
It will be useful to allow use prefix or suffix to delete more than one object and not to list each one of them, for example, allow:
gs://MY_BUCKET/*.csv
instead of:
gs://MY_BUCKET/file1.csv, gs://MY_BUCKET/file2.csv, gs://MY_BUCKET/file3.csv, gs://MY_BUCKET/file4.csv, gs://MY_BUCKET/file5.csv
If applicable, reasons why alternative solutions are not sufficient:
Allow this will help to speed-up delete files when using this plugin.
Other information (workarounds you have tried, documentation consulted, etc):
As an alternative is possible to list the objects in the bucket with a python script:
from google.cloud import storage
bucket_name="MY_BUCKET" file_format="csv"
def list_csv(bucket_name): storage_client = storage.Client() blobs = storage_client.list_blobs(bucket_name) for blob in blobs: if file_format in blob.name: print("gs://"+ bucket_name + "/" + blob.name+",") return None
list_csv(bucket_name)
Then copy and paste the output
[1]: Google Cloud Storage Delete