Answers for "nodejs aws s3 bucket delete item"

1

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
});
Posted by: Guest on October-04-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language