Is it possible to delete multiple objects using presigned URLs? I tried the following code
const presignedDeleteUrl = await getSignedUrl(
S3,
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.