forked from SaltwaterC/aws2js
-
Notifications
You must be signed in to change notification settings - Fork 0
s3.delLifeCycle()
SaltwaterC edited this page May 24, 2012
·
2 revisions
S3 helper for deleting the bucket's lifecycle configuration.
s3.delLifeCycle(callback)
- '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.
This method removes all rules added to the lifecycle configuration. It's used on s3.delLifeCycleRule() when the last rule is dropped, because S3 doesn't accept empty lifecycle configuration.