Bug report
Describe the bug
When using Google Cloud Storage (GCS) via its S3 interoperability API as the storage backend, deleting objects from the Supabase UI (or any call to the batch delete endpoint) fails with a NotImplemented error.
GCS S3 interop does not support the DeleteObjects (multi-object batch delete) API. The storage-api's S3Backend.deleteObjects() always uses DeleteObjectsCommand, so all deletes fail.
To Reproduce
- Configure Supabase Storage with GCS in S3 interoperability mode as the backend (
GLOBAL_S3_ENDPOINT, GLOBAL_S3_REGION, GCS HMAC credentials)
- Upload a file via Supabase Studio or the API
- Try to delete the file from Studio UI (or call
DELETE /object/bulk / batch delete endpoint)
- Observe HTTP 400 with
NotImplemented error
Error in storage-api logs:
NotImplemented: A header or query you provided requested a function that is not implemented.
Expected behavior
Files should be deleted successfully. Individual DeleteObject calls work correctly on GCS — only the batch DeleteObjects API is unsupported.
Screenshots
System information
- OS: Linux (GKE)
- Version of supabase storage-api: v1.37.8
- Storage backend: Google Cloud Storage (S3 interoperability mode)
Additional context
Bug report
Describe the bug
When using Google Cloud Storage (GCS) via its S3 interoperability API as the storage backend, deleting objects from the Supabase UI (or any call to the batch delete endpoint) fails with a
NotImplementederror.GCS S3 interop does not support the
DeleteObjects(multi-object batch delete) API. The storage-api'sS3Backend.deleteObjects()always usesDeleteObjectsCommand, so all deletes fail.To Reproduce
GLOBAL_S3_ENDPOINT,GLOBAL_S3_REGION, GCS HMAC credentials)DELETE /object/bulk/ batch delete endpoint)NotImplementederrorError in storage-api logs:
Expected behavior
Files should be deleted successfully. Individual
DeleteObjectcalls work correctly on GCS — only the batchDeleteObjectsAPI is unsupported.Screenshots
System information
Additional context
DELETE /object/:bucket/:path(single delete) works correctly as it usesDeleteObjectCommandunder the hoodDeleteObjectsCommandwhich GCS does not implementNotImplementedand fall back to sequential individualDeleteObjectCommandcalls