delete bucket aws s3 li code example
Example: nodejs aws s3 bucket delete item
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
});