Sample lifecycle rule
lifecycle.json and you can apply that to the bucket you intend to empty ---
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Check out our upcoming events and meetups! View events →
Delete all objects from a Telnyx Cloud Storage bucket before removing it. Use the Mission Control portal or the S3-compatible API to bulk empty buckets.
{
"Rules": [
{
"ID": "delete_all_versions_and_delete_markers",
"Status": "Enabled",
"Filter": {
"Prefix": ""
},
"NoncurrentVersionExpiration": {
"NoncurrentDays": 1
},
"AbortIncompleteMultipartUpload": {
"DaysAfterInitiation": 1
},
"Expiration": {
"Days": 1
}
}
]
}
lifecycle.json and you can apply that to the bucket you intend to empty ---
aws s3api put-bucket-lifecycle-configuration --bucket mybucketname --lifecycle-configuration file://lifecycle.json --profile mytelnyxprofile --endpoint-url https://us-west-1.telnyxcloudstorage.com
aws s3api get-bucket-lifecycle-configuration --bucket mybucketname --profile mytelnyxprofile --endpoint-url https://us-west-1.telnyxcloudstorage.com
Was this page helpful?