-
Notifications
You must be signed in to change notification settings - Fork 32
s3.delMultiObjects()
SaltwaterC edited this page Dec 26, 2012
·
2 revisions
S3 helper that wraps the Delete Multiple Objects S3 POST call.
s3.delMultiObjects(objects, quiet, callback)
- 'object' - an Array of JavaScript Objects containing the S3 object list to delete. Has the following structure:
[{key: '/path/to/object1'}, {key: '/path/to/object2'}]
. For buckets that have object versioning, you may pass a versionId key:{key: '/path/to/object', versionId: 'version-id'}
. - 'quiet' - a boolean flag for enabling the quiet mode for the request. Defaults to false.
- 'callback' - the callback that is executed when the processing finishes. It has a couple of arguments: error and result.
- If there's an error, the callback receives the error argument as Error instance.
- If the error argument is null, then the response argument contains the response.headers object as returned by the node.js core HTTPS client.