Run the data retention cleanup now
run_retention_cleanupApply the site's retention policy immediately (see get_privacy_ops_status for its periods and mode). It does three things: (1) PERMANENTLY purges contacts, submissions and activity whose 14-day recovery window has passed — that cannot be undone; (2) takes submissions and contacts older than the policy allows and, in "delete" mode, deletes them recoverably for 14 days, or, in "anonymize" mode, strips their names, emails and phone numbers in place — which cannot be undone; (3) records the run. Contacts that still have live submissions are kept. Returns the counts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | Yes | The site, from list_sites | |
| user_goal | No | Optional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details. |