Jobs
Delete expired rows
POST
Deletes events, sessions and raw speed rows older than each project's retentionDays, up to 50,000 of each per run, log lines older than 7 days, expired widget tokens and rate limit windows older than a day; rowsDeleted is the total. Needs the cron secret.
Authorization
cronSecret AuthorizationBearer <token>
The CRON_SECRET the scheduled jobs workflow sends.
In: header
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v2/admin/jobs/cleanup"{ "data": { "job": "rollup", "status": "ok", "startDay": "2026-09-19", "days": 8, "rowsWritten": 1880, "durationMs": 4120 }}