01How it works
Account › Settings › Click data, for the whole install (every account's clicks). The cron job
does the deleting, in batches: show says what is set, set changes the automatic deletion,
delete-before schedules the one-off deletion. Setup data (campaigns, trackers, landing
pages) is never deleted.
Needs an Admin or Super user key whose role has access_to_settings (as Account › Settings asks).
02Commands
3 under p202 system retention.
03For agents
Running this from an agent
- Read the same facts as JSON:
p202 commands system retention --json. - With
AI_AGENT,CLAUDECODEor another agent variable set, output is compact JSON and errors arrive on stderr as a JSON envelope with ahint. - Exit codes: 0 ok, 1 bad input, 2 auth, 3 network, 4 server error, 5 partial failure.
{
"path": "p202 system retention",
"use": "retention",
"short": "Click-data retention: automatic deletion after N days, and a one-off deletion before a date",
"long": "Account › Settings › Click data, for the whole install (every account's clicks). The cron job\ndoes the deleting, in batches: `show` says what is set, `set` changes the automatic deletion,\n`delete-before` schedules the one-off deletion. Setup data (campaigns, trackers, landing\npages) is never deleted.\n\nNeeds an Admin or Super user key whose role has access_to_settings (as Account › Settings asks).",
"runnable": false
}