I'm working with Amazon S3 in Node.js and I want to delete one or more files from a bucket. I want to know what happen when I set Quiet parameter to true.
var params = {
Bucket: 'STRING_VALUE', /* required */
Delete: { /* required */
Objects: [ /* required */
{
Key: 'STRING_VALUE', /* required */
VersionId: 'STRING_VALUE'
},
/* more items */
],
Quiet: true || false
},
MFA: 'STRING_VALUE'
};
s3.deleteObjects(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
I appreciate any help.
As from Amazon Docs: Quiet Mode:
Toggles between Quiet and Verbose mode for the operation. If set to true (Quiet mode), the response includes only those keys for objects on which the delete operation failed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With