Deleting Cloud Storage Objects in Batch
google-cloud-storage
Solution
You need to make 1 api request for each object. The simplest way to accomplish this would be with gsutil:
$ gsutil -m rm gs://bucket_with_many_objects/**
The -m option enables multithreading, which will delete many objects in parallel.
Problem
Whats the best way to delete many cloudstorage objects? I have a bucket that contains ~500K objects and I'd like to delete them all. Do you I have to make 1 api request for each object I want to delete or is there some sort of batch method? I'm currently using gsutil to delete one at a time.