Closed as not planned
Description
Checkboxes for prior research
- I've gone through Developer Guide and API reference
- I've checked AWS Forums and StackOverflow.
- I've searched for previous similar issues and didn't find any solution.
Describe the bug
This error happens when you try to delete too many objects. To get around this I have this code:
const client = this.getS3Client();
const bucket = AWS.S3_BUCKET_NAMES[bucketType];
const chunks = _.chunk(objectKeys, 1000);
await Promise.all(
chunks.map((chunkedKeys) =>
client.send(
new DeleteObjectsCommand({
Bucket: bucket,
Delete: {
Objects: chunkedKeys.map((key) => ({ Key: key }))
}
})
)
)
);
This code should be implicit and implemented under the hood for the delete objects command.
Regression Issue
- Select this option if this issue appears to be a regression.
SDK version number
@aws-sdk/client-s3@3.741.0
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
v22.15.0
Reproduction Steps
See above
Observed Behavior
See above
Expected Behavior
See above
Possible Solution
See above
Additional Information/Context
No response