Data Retention¶
Managing data retention
Data Retention controls how long Qualytics keeps inactive assets. An Admin sets a period for each policy in Platform Defaults, and the Data Retention Flow applies those policies on a schedule. Retention applies across the deployment, with no per-datastore override or propagation step.
Permissions
Only the Admin user role can change retention periods, preview their effect, or manage and manually run the Data Retention Flow. See Platform Defaults Permissions.
Before You Enable Retention¶
Policies with no period are shown as Off in Settings. Upgrades carry existing inactive-anomaly cleanup settings into Data Retention. An off policy performs no automatic cleanup; other enabled policies still apply. A period must be a whole number from 30 to 36,500 days, except inactive-anomaly cleanup, which accepts 1 to 36,500 days. Setting a period makes assets older than that period eligible at the next run, including assets that already exist.
Review the preview before enabling a policy or shortening its period. Choose a stale-check period longer than the normal gap between scans: a check can look stale simply because its datastore is scanned infrequently.
Permanent removal
Hard deletion and user purge cannot be undone. They remove existing records when the policy runs. Clearing a period affects actions that start afterward. Deactivating the Flow prevents subsequent scheduled runs. To stop a running execution, abort it; completed batches remain permanent. Archiving a stale check keeps its anomalies, but the archived-check deletion policy can later remove both.
Retention Policies¶
| Policy | When an asset is eligible | What a run does |
|---|---|---|
| Archive or delete inactive anomalies | An anomaly has had no edits or comments within the period and matches the selected statuses and any retained datastore or tag filters. | Archives eligible open anomalies using the selected archive status, or permanently deletes eligible anomalies, including archived ones. |
| Archive inactive checks | An active check has not been evaluated by a scan within the period. For a check never evaluated, its creation date is used. | Archives the check and keeps its anomalies. Templates and checks that are not active are excluded. |
| Delete archived checks | The check has been archived longer than the period. | Permanently deletes the check and the anomalies it generated, including anomalies that are still active. Archived templates are deleted only when no checks link to them. |
| Delete archived anomalies | The anomaly has been archived longer than the period. | Permanently deletes the anomaly. Active anomalies are excluded from this policy. |
| Delete inactive datastores and connections | The datastore was created before the period, with no edit or operation created within it. Queued or running operations protect the datastore regardless of age. | Permanently deletes eligible datastores. A connection is deleted only after it has no datastores, was created before the period, and has not been edited within it. |
| Remove deactivated users’ personal data | The Personal or Service Account has been deactivated longer than the period. | Erases personal details and personal records while retaining a non-identifying account record for history. Qualytics system accounts are excluded. |
A check's last evaluation counts whether it passed or failed. Retention does not adjust for scan frequency.
Inactive Anomalies¶
Set the inactivity period, then choose the Action and Which anomalies under Cleanup rules. The action either archives anomalies with the status picked under Archive as, or permanently deletes them. An empty status selection means all eligible statuses. Archiving considers only open, unarchived anomalies, so it offers only open statuses. Deletion can include archived anomalies.
Turning the policy Off clears its period. Recent edits or comments prevent cleanup. An anomaly without recorded edits is timed from its creation.
On upgrade, the separate cleanup Flow is consolidated into Data Retention. Its period, operation, status filters, archive status, comments, mentions, assigned tags, and datastore or tag filters are retained. A deactivated cleanup Flow becomes a paused policy that keeps its period. Choosing a period for it in Settings turns it back on. Its notification actions and execution history remain available under Data Retention. Other custom anomaly Flows are unaffected.
All policies use the Data Retention Flow's schedule. If that Flow did not exist before the upgrade, it inherits the cleanup Flow's schedule and timezone. Review the saved schedule after upgrading.
Datastore Dependencies¶
A datastore used by an operation or global export in a Flow, or serving as another datastore's enrichment destination, is excluded from inactive-datastore cleanup. A computed join in another datastore can also block deletion; the run reports it as skipped with a reason.
Retention deletes Qualytics assets. It does not configure data retention in your source databases or storage systems.
User Purge¶
Purging a deactivated account erases its name, email, picture and sign-in identifiers, including those stored in its account history and sign-in event details. The account's tokens, credentials, personal tags, notifications, conversations, sign-in links, team and notification recipient memberships, and anomaly assignments are removed. Checks and computed assets the account owns are reassigned to the Qualytics system user. The account's Explore workspaces, including those on container Explore tabs, and its open query results are deleted. Its Explore runs stay on the Explore History page until they reach the 90 days that History keeps them.
The retained account is identified as Deleted user #id so history can still refer to it. It is excluded from account lists and lookups and cannot be reactivated. Purge does not delete the operations the person ran.
The Data Retention Flow¶
Qualytics creates one Data Retention Flow with a default schedule of daily at 03:00 UTC. It has a separate Retention action for each policy. An action reads the saved period when it starts. If that period is unset, the action is skipped, along with any notification actions attached to it.
An Admin can:
- Change the schedule, timezone, description and activation state.
- Run the Flow manually.
- Add, edit or remove notification and workflow actions.
The Flow cannot be deleted or renamed, its trigger stays schedule-based, and its Retention actions cannot be edited or removed. Retention actions cannot be added to other Flows. Only notification and workflow actions (Webhook, HTTP Action and n8n) can be added to this Flow.
Each policy runs independently, so one policy's failure does not prevent the other policies from running. Notification actions attached to a policy run after that action succeeds.
Execution Results¶
The Flow's execution records show counts for each policy and the assets skipped with reasons. A failed action retains the counts for work committed before the failure.
Actions work in small batches and check for an abort between batches. Each action has a 45-minute processing budget. If it reaches that budget, its log says it stopped before the end, and a later run processes the remaining eligible assets. Aborting does not undo completed batches.
Preview and Execution Can Differ¶
The preview counts candidates without changing anything. It uses saved periods unless you supply proposed periods in the Defaults form or through the API. It is an estimate rather than a reservation: assets can be edited, new operations can start, or another run can process candidates before your run reaches them. Dependencies can also prevent a candidate from being removed.
Related¶
- Configure Data Retention: set periods and preview their impact in Settings.
- Platform Defaults API: preview, set and clear periods.
- How a Flow Works: how the system Flow differs from other Flows.
- Flow Executions: execution history and results.