Skip to content
SaltwaterC edited this page May 24, 2012 · 2 revisions

About

S3 helper for deleting the bucket's lifecycle configuration.

Reference

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.

Clone this wiki locally