p202 system retention

Click-data retention: automatic deletion after N days, and a one-off deletion before a date

New in 1.9.77
All commands

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, CLAUDECODE or another agent variable set, output is compact JSON and errors arrive on stderr as a JSON envelope with a hint.
  • Exit codes: 0 ok, 1 bad input, 2 auth, 3 network, 4 server error, 5 partial failure.
p202 commands system retention --json
{
  "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
}