# RetentionPreview

The RetentionPreview type of the TypeScript SDK, part of AccountRetentionRow and 1 more types.

```ts
type RetentionPreview = {
  bytes: number
  days: number
  messages: number
}
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `bytes` | `number` | Their stored size in bytes (quota keeps counting them until the trash purge) |
| `days` | `number` | The window previewed, in days |
| `messages` | `number` | Live messages older than the window — what the duty would expunge |

## Used in

[`AccountRetentionRow`](/docs/sdks/typescript/types/account-retention-row), [`Retention`](/docs/sdks/typescript/types/retention).
