From 1c94c470537f91852964500e6821f7b119f3c3c7 Mon Sep 17 00:00:00 2001 From: Kyle Date: Tue, 21 May 2024 13:56:25 -0400 Subject: [PATCH] Fixing delete blobs api call --- guillotina_s3storage/storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guillotina_s3storage/storage.py b/guillotina_s3storage/storage.py index 7539247..6f54af5 100644 --- a/guillotina_s3storage/storage.py +++ b/guillotina_s3storage/storage.py @@ -465,7 +465,7 @@ async def delete_blobs(self, keys: List[str], bucket_name: Optional[str] = None) } } - raw_response = await client.get_object(**args) + raw_response = await client.delete_objects(**args) response = raw_response.json() success_keys = [o["Key"] for o in response["Deleted"]] failed_keys = [o["Key"] for o in response["Errors"]]