Skip to main content
The Cleanup API triggers maintenance operations that remove expired data. Rate limited to 5 requests/min due to its destructive nature. Admin only.

POST /api/v1/cleanup

Trigger data cleanup for the tenant. Removes expired variant assignments and old audit logs based on tenant retention configuration.

Example

Response

Cleanup runs are audit-logged. You can automate periodic cleanup by calling this endpoint from a cron job or scheduled pipeline.