andrewrk / node-s3-client

high level amazon s3 client for node.js
MIT License
1k stars 303 forks source link

`deleteRemoved: true` doesn't throw an error on Access Denied #235

Open catamphetamine opened 4 years ago

catamphetamine commented 4 years ago

s3.deleteObjects() returns:

 {
      "Key": "xxx/yyy/zzz.html",
      "Code": "AccessDenied",
      "Message": "Access Denied"
    },

And the library just discards those types of errors.

That could happen when the user isn't assigned s3:DeleteObject role.