---
title: "System table cleanup"
site: admin
version: 1.11
versions: "all"
url: https://docs-new.servicely.ai/admin/1.11/platform/system-table-cleanup/
type: reference
application: platform
last_updated: 2026-11-24
commit: 88e011e506a8
---


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

<!-- source: platform/data/SystemTableCleanup -->
| 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**. | |


## Related

- [Scheduled jobs and job queues](page:platform/jobs)
- [How data import works](page:environments/how-data-import-works)
- [Set log levels and read system logs](page:platform/logging)
