# 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) [​](/content/docs/partner-integrations/api/schemas/lifecycleexpiration/#specify-one-condition-not-both "Direct link to Specify ONE Condition (Not Both/index.html)")

- `days`: Delete objects N days after their creation date
- `date`: Delete all matching objects on a specific date

```text

<Schema

{...require("./lifecycleexpiration.Schema.json")}

>

</Schema>

```

LifecycleExpiration

```json
{

"days": 0,

"date": "2025-01-01T00:00:00Z"

}
```
