# Clinicom Retention Policy

## Default retention

- **Organization setting**: `retention_days` (default 365)
- **Scope**: interpretation sessions, messages, session events linked to the organization
- **Excluded**: billing records, audit logs (retained per contract, typically 7 years)

## Purge mechanism

Run the retention cleaner job:

```bash
# Dry run (count only)
python -m app.jobs.retention_cleaner

# Execute purge
python -m app.jobs.retention_cleaner --execute
```

## Customer overrides

Trust and enterprise contracts may specify shorter or longer retention. Update `organizations.retention_days` via admin tooling or migration.

## Legal holds

If a subject access request or litigation hold applies, suspend purge for affected sessions until cleared by the practice manager.

## Demo clinic

Demo seed data is recreated on startup when empty; purge does not remove the demo organization itself.
