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.
You need to make 1 api request for each object. The simplest way to accomplish this would be with gsutil:
The -m option enables multithreading, which will delete many objects in parallel.