Personal data
Store as little personal data as the job needs, delete it on a schedule and on request, and keep it out of test copies. Know who read it and when.
- Required 5
- Recommended 1
Required
Store only the personal data you need
DAT-30Add a personal data column only when a feature needs it, and write down why. GDPR Article 5 asks for data that is limited to its purpose.
Delete old data automatically
DAT-31Give each kind of personal data a retention period, and let a scheduled job delete or anonymise rows when it ends.
Keep personal data out of test copies
DAT-32Never copy personal data into development, test or staging databases. Mask or replace it while copying. A throwaway restore inside the production account is the one exception.
Log who reads personal data
DAT-34Record when staff or support tools read or change a person's data, so misuse can be found and proved.
Erase retired databases and every copy
DAT-35When a database, replica or test copy is no longer needed, erase it with every snapshot and volume it left behind. Record what was erased, how and when.
Recommended
Pause deletion for records under a legal hold
DAT-79Let a named role put a hold on an account or a set of records, with a reason and a review date. Every deletion job and erasure request skips held records and logs why.
Read this with
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/data/personal-data">Agent Wranglers data and databases playbook</a>. In code you write, add a comment next to it with the same link.