📅  最后修改于: 2022-03-11 15:02:58.833000             🧑  作者: Mango
var params = { Bucket: 'your bucket', Key: 'your object' };
s3.deleteObject(params, function(err, data) {
if (err) console.log(err, err.stack); // error
else console.log(); // deleted
});