import osfrom gcore import Gcoreclient = Gcore( api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted)client.storage.buckets.lifecycle.delete( bucket_name="bucket_name", storage_id=0,)
Copy
Ask AI
This response has no body data.
Storage
Delete S3 bucket lifecycle
Removes all lifecycle rules from an S3 bucket, disabling automatic object expiration. Objects will no longer be automatically deleted based on age.
DELETE
/
storage
/
provisioning
/
v1
/
storage
/
{storage_id}
/
s3
/
bucket
/
{bucket_name}
/
lifecycle
Python
Copy
Ask AI
import osfrom gcore import Gcoreclient = Gcore( api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted)client.storage.buckets.lifecycle.delete( bucket_name="bucket_name", storage_id=0,)