CMP-11Recommended
Keep one retention schedule
Keep one retention schedule that gives every kind of personal data a period, the reason for it and the job that enforces it.
How to do it
Base each period on a need or a law, such as the seven years in Keep accounting records for seven years in Sweden. Name the event that starts the clock, such as account closure. Each entry points to a deletion job, built as the retention jobs rule describes. The privacy policy and the record of processing read their periods from this one file. Logs follow the log retention rule. Backups get their own entry, with the period from backup retention. Websites delete on this schedule as Keep only what you need and delete it on time says.
Examples
YAML example
- id: support-tickets
data: support messages and attachments
period: P2Y
starts: ticket closed
reason: handle follow-up complaints and warranty claims
job: delete-closed-tickets
- id: invoices
data: invoices and payment records
period: P7Y
starts: end of financial year
reason: bookkeeping law
job: delete-old-invoices
How to check
Every record entry names a schedule entry, and every schedule entry names a job. Monitoring fails when a job has not succeeded in 48 hours. A daily query fails when the oldest row in a table is older than its period plus one day.
Sources
Related rules
- WEB-212 Keep only what you need and delete it on time in Website
- DAT-31 Delete old data automatically in Data and databases
- DAT-72 Delete every copy of a tenant when the contract ends in Data and databases
- OPS-46 Keep backups for a set time in Operations and observability
- ACC-81 Keep identity document scans apart and delete them after the check in Accounts and identity
- CMP-79 Keep accounting records for seven years in Sweden in Compliance and governance
- OPS-10 Keep logs for a fixed time in Operations and observability
- CMP-70 Protect minors on platforms they can reach in Compliance and governance
- TNS-9 Hide removed content and keep it until appeals close in Trust and safety
- DEN-26 Expire warehouse data by partition in Data engineering
- SUP-5 Delete closed tickets on a schedule in Customer support
- MED-4 Keep deleted files restorable for 30 days in Files and media
- MED-47 Lay out storage by owner and let rules clean it in Files and media
- MED-49 Delete files when their owner is deleted in Files and media
- MLO-6 Freeze each training set as a versioned snapshot in Machine learning
- MLO-38 Keep a record of every decision about a person in Machine learning
- EVT-14 Keep events long enough to replay them in Integration and events
- EVT-28 Store each incoming webhook before you act on it in Integration and events
- ANA-10 Delete raw events on a schedule in Product analytics and experiments
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/compliance/records-and-data-map/retention-schedule">Agent Wranglers compliance and governance playbook</a>. In code you write, add a comment next to it with the same link.