• Object Storage Service

obs
  1. Help Center
  2. Object Storage Service
  3. Developer Guide (Node.js SDK)
  4. Quick Start
  5. Deleting an Object

Deleting an Object

Sample code:

obsClient.deleteObject({
       Bucket : 'bucketname',
       Key : 'objectkey'
}, (err, result) => {
       if(err){
              console.error('Error-->' + err);
       }else{
              console.log('Status-->' + result.CommonMsg.Status);
       }
});