JavaScript: deleteBucketLifecycle

Removes the lifecycle policy from a bucket.

Safe to call when no policy is stored. The response is still success. Standard buckets only. Returns FeatureNotEnabled if lifecycle is off for the project.

Parameters

Examples

Delete lifecycle configuration

const { data, error } = await supabase
  .storage
  .deleteBucketLifecycle('avatars')