Data Retention
Cubrel cleans up after itself. Old notifications, stale audit log entries, expired invites, that kind of thing don't pile up forever. This article covers what gets cleaned up automatically, how long each type of data sticks around by default, and where to change those windows.
Where to find it
Admins can go to Workspace > Data & Security > Data Retention to see and change every retention window in one place. Nothing here needs a deploy or a restart; a change takes effect the next time the relevant cleanup job runs.
What gets cleaned up
Twelve kinds of data have their own configurable retention window, each measured in days from when the record was created (or, for invites, from when it was resolved, and for deleted records, from when they were deleted):
| Setting | What it covers | Default |
|---|---|---|
| Notification Retention | In-app notifications | 180 days |
| Audit Log Retention | Every logged create, update, and delete across the app | 730 days |
| User Invite Retention | Invites that have been accepted, revoked, or have expired | 365 days |
| Failed Job Retention | Background jobs that failed and were logged for debugging | 30 days |
| Setup Token Retention | One-time tokens used during first-time account setup | 90 days |
| Import History Retention | Completed or failed import runs and uploads never started, files attached in Ask Cubrel included, with the uploaded file | 90 days |
| Abandoned Draft Module Retention | Custom modules left unfinished in the Module Builder | 7 days |
| Workflow Run History Retention | Past workflow runs and what each action did | 90 days |
| Deleted Record Retention in the Bin | Deleted records, with their line items, attendees, images, and files. At most 90 days. See Restoring Deleted Records | 30 days |
| Ask Cubrel Usage Log Retention | The token count of each Ask Cubrel request | 365 days |
| Ask Cubrel Chat Retention | Ask Cubrel chats, counted from their last message | 90 days |
| Webhook Delivery Log Retention | The delivery log of each webhook, with the payload sent and the receiver's response | 30 days |
Images and files of a deleted record stay with it in the bin, so a restore brings them back; they're removed once the record leaves the bin for good. Replacing an image or file on a record cleans up the old one right away.
Pending invites are never cleaned up, however old they are; only accepted, revoked, or expired ones are.
Setting a window to 0 or a very low number
A shorter window means Cubrel forgets that data sooner. There's no toggle to turn a category off entirely; the lowest meaningful setting is whatever number of days you're comfortable with. Audit logs in particular are worth thinking about before shortening: once an entry ages out, that history is gone for good.
Draft modules can also be discarded manually
You don't have to wait out the retention window for an abandoned draft. From the Module Builder, an admin can click Discard Draft on an unfinished module to delete it immediately, unsaved fields and all. The 7-day retention setting is just the backstop for drafts nobody remembered to clean up.
What isn't on a configurable timer
A few housekeeping tasks run on a fixed schedule instead of a setting you can change: orphaned image uploads are swept up weekly, expired password reset links are cleared daily, and impersonation sessions that got stuck open (say, a browser tab closed mid-session) are reconciled hourly. These aren't user data in the same sense as the table above, so there's nothing to configure.
In short
| Question | Answer |
|---|---|
| Where do I change retention windows? | Workspace > Data & Security > Data Retention |
| Do changes need a deploy? | No, they apply the next time the cleanup job runs |
| What happens when data passes its retention window? | It's permanently deleted, there's no recovery |
| Can I turn off retention for a category? | No, but you can set a long window |
| What cleans up immediately instead of on a schedule? | The old file when you replace an image or file on a record |
| How long can deleted records stay in the bin? | 30 days by default, up to 90 |
| Can I discard an abandoned draft module myself? | Yes, with Discard Draft in the Module Builder, without waiting for retention to catch it |