shanielh opened a new issue, #924: URL: https://github.com/apache/arrow-rs-object-store/issues/924
**Is your feature request related to a problem or challenge? Please describe what you are trying to do.** `ObjectStore::delete_stream` uses each store's native bulk delete where one exists: S3 sends `DeleteObjects` requests of up to 1,000 keys, and Azure sends Blob Batch requests of up to 256 blobs. Google Cloud Storage still sends one `DELETE` per object, at most 10 at a time. Deleting many objects on GCS (for example, cleaning up a large prefix of temporary files) therefore takes far longer than on S3 or Azure, and can run past an application's time budget. **Describe the solution you'd like** Use the GCS [JSON API batch endpoint](https://cloud.google.com/storage/docs/batch) (`POST /batch/storage/v1`, `multipart/mixed`, up to 100 calls per batch) in `delete_stream`. The Azure implementation already builds and parses `multipart/mixed` batch bodies, so most of that code can be shared. Keep the existing contract: one result per input path, in input order. A missing object should still map to `Error::NotFound`, as it does today. Add an opt-out (like `AmazonS3Builder::with_disable_bulk_delete`) for GCS-compatible services that do not implement the batch endpoint. **Describe alternatives you've considered** Raising the concurrency of individual deletes. That still costs one HTTP round trip per object. **Additional context** The repo's fake-gcs-server emulator image already supports `/batch/storage/v1`, so the emulator tests can cover it. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
