reference1 min readApplication: Platform
System table cleanup
Fields of a system table cleanup record, which deletes old rows from high-volume tables, and the cleanup records Servicely ships.
A system table cleanup record deletes rows from a high-volume table once they pass a retention period. Use this page when you add cleanup for your own tables, such as import staging tables, or check what Servicely already removes.
Cleanup records are under Administration → Configuration → System table cleanup. The “System table cleanup” job runs them every day at 01:00.
Cleanup record fields
| Name | Description | Example |
|---|---|---|
| Name | The name of the cleanup record. | System log record cleanup |
| Table | The table whose old records are deleted. | SystemLogRecord |
| Date field | The field on the table where the retention period starts. | CreatedOn |
| Maximum age in seconds | How long after the Date field a record is kept before it is deleted. | 604800 (7 days) |
| Condition | Optional. Only records that match the condition are deleted. | State is completed |
| Active | Whether the cleanup runs. | Yes |
A record is deleted when its Date field value plus Maximum age in seconds is in the past and it matches the Condition. Common values are 604800 for 7 days, 2592000 for 30 days and 7776000 for 90 days.
Shipped cleanup records
| Name | Description | Example |
|---|---|---|
| Async Queue Cleanup | AsyncQueue records in state processed or error, 30 days after UpdatedOn. |
|
| Engagement event cleanup | EngagementEvent records, 90 days after CreatedOn. |
|
| Engagement feedback cleanup | EngagementFeedback records, 90 days after CreatedOn. |
|
| Expired password reset link cleanup | SystemNonce password reset records, 7 days after Expires. |
|
| Import load cleanup | ImportLoad records, 7 days after UpdatedOn. |
|
| Import log cleanup | ImportLog records, 7 days after UpdatedOn. |
|
| Import run cleanup | ImportRun records that finished, stopped, halted, were abandoned or skipped, 30 days after FinishedOn. |
|
| Job request cleanup | Completed JobRequest records, 7 days after UpdatedOn. |
|
| MCP audit log cleanup | SystemMCPAuditLog records, 7 days after CreatedOn. |
|
| System Event Cleanup | SystemEvent records not in state ready, 7 days after UpdatedOn. |
|
| System log record cleanup | SystemLogRecord records, 7 days after CreatedOn. |
|
| SystemAIPromptExecution cleanup | SystemAIPromptExecution records, 30 days after CreatedOn. |
|
| SystemInboundWebhookEvent cleanup | SystemInboundWebhookEvent records, 30 days after CreatedOn. |
|
| Unfinished import run cleanup | ImportRun records still running, 30 days after UpdatedOn. |
|
| Webhook Delivery Log Cleanup | WebhookDeliveryLog records, 30 days after CreatedOn. |