Deleting multiple Objects in Tigris

Is it possible to delete multiple objects using presigned URLs? I tried the following code

const presignedDeleteUrl = await getSignedUrl(
          new DeleteObjectsCommand({
            Bucket: env.BUCKET_NAME,
            Delete: { Objects: objects },
          { expiresIn: 3600 }

and called the returned URL using DELETE & POST method and I get an XML response which says “There were headers present in the request which were not signed”.

I’m not sure if I’m doing something wrong or if it’s not possible. Deleting single objects work anyway.

Presigned URL doesn’t support multiple keys. You will have to create multiple urls (one per object).

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.