# Setting: `file_trash_retention_days`

- **Constant:** `ConfigInterface::FILE_TRASH_RETENTION_DAYS`
- **Category:** `servers`
- **Type:** `number`
- **Required:** yes
- **Sensitive:** no
- **Validation:** `required|integer|min:0`
- **Placeholder / default hint:** `30`

## Description

Automatically purge trashed files older than this many days. Use 0 to keep items until manually deleted or the size limit is reached.

## Allowed options

_Free-form / no fixed options_

## Change via CLI

```bash
featherpanel saas getsetting file_trash_retention_days
featherpanel saas setsetting file_trash_retention_days "<value>"
```

## Change via API

```http
PATCH /api/admin/settings
Content-Type: application/json

{ "file_trash_retention_days": "<value>" }
```
