LifecycleExpiration
Configuration for automatic object deletion (expiration).
When the expiration condition is met, objects matching this rule are permanently deleted.
Specify ONE Condition (Not Both)
days: Delete objects N days after their creation datedate: Delete all matching objects on a specific date
<Schema
schema={{"type":"object","description":"Configuration for automatic object deletion (expiration).\n\nWhen the expiration condition is met, objects matching this rule are **permanently deleted**.\n\n## Specify ONE Condition (Not Both)\n\n- `days`: Delete objects N days after their creation date\n- `date`: Delete all matching objects on a specific date\n```\n","properties":{"days":{"type":"integer","description":"Number of days after object creation when the object will be deleted.\nThe deletion happens at midnight UTC on the calculated expiration date.\n\nExample: If `days: 30` and an object was created on Dec 1, it expires on Dec 31.\n"},"date":{"type":"string","format":"date-time","description":"Specific date (at midnight UTC) when all matching objects will be deleted, regardless of when they were created.\nUse this for one-time cleanup operations or compliance deadlines.\n\nMust be a future date in RFC3339 format with midnight UTC time.\n","example":"2025-01-01T00:00:00Z"}},"title":"LifecycleExpiration"}}
schemaType={"response"}
>
</Schema>
LifecycleExpiration
{
"days": 0,
"date": "2025-01-01T00:00:00Z"
}