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
id
(Required)The unique identifier of the bucket.
Examples
Delete lifecycle configuration
const { data, error } = await supabase
.storage
.deleteBucketLifecycle('avatars')
