# Empty trash

**Publié le** : 2026-05-08
**Catégorie** : Media & Files

## `DELETE /media/trash`

**Empty trash**

Permanently deletes ALL trashed files. This action is irreversible
and frees the associated storage.

Required permissions: `media.delete`

### Responses

| Status | Description |
| --- | --- |
| `204` | Deleted (no body) |
| `401` | Unauthorized — invalid or missing API token |
| `403` | Forbidden — insufficient permissions |


> **Notes:** - This operation can take time if many files are trashed.
> 
> - Storage quota is updated after completion.

### Examples

```bash
curl -X DELETE https://api.lynkow.com/v1/media/trash \
  -H "Authorization: Bearer $API_TOKEN"
```

### Response Example

```json
{
  "deleted": 5
}
```

---