The Data Retention page (Documentation Index
Fetch the complete documentation index at: https://docs.encoreos.io/llms.txt
Use this file to discover all available pages before exploring further.
/settings/data-retention) provides controls for defining how long different data types are kept, placing legal holds to prevent data deletion, and reviewing the history of lifecycle events across the organisation.
Overview
The page is gated at the route level bypf.data-retention.manage. It renders three tabs: Retention Policies, Legal Holds, and Lifecycle Events. The Retention Policies tab uses useRetentionPolicies and shows each policy’s entity type, scope (global or organisation), retention period in human-readable form, action (archive or delete), and active status. The Legal Holds tab uses useLegalHolds and supports scope at the organisation, entity-type, or specific record level. The Lifecycle Events tab uses useLifecycleEvents to display an immutable audit trail of archived, deleted, hold_placed, and hold_removed events. CRUD operations on policies and holds require pf.data-retention.manage and pf.legal-holds.manage respectively, enforced by inner PermissionGate guards around the action buttons.
Who it’s for
Requires permissionpf.data-retention.manage. Legal hold mutations also require pf.legal-holds.manage.
Before you start
- You must hold
pf.data-retention.manageto access this page. - Consult legal and compliance teams before creating, modifying, or removing policies or holds.
Steps
Open Data Retention
Navigate to
/settings/data-retention. The Retention Policies tab is active by default.Add or edit a retention policy
On the Retention Policies tab, click Add Policy (requires
pf.data-retention.manage). Fill in the entity type, scope, retention period, and action in the RetentionPolicyDialog.Manage legal holds
Switch to the Legal Holds tab. Click Place Legal Hold to open
LegalHoldDialog and specify the scope. To release an active hold, click Remove on the hold row.Key concepts
Retention policy scope
Retention policy scope
A
global scope applies the policy across all organisations (platform-wide). An organisation-scoped policy applies only to the current organisation.Legal hold scope
Legal hold scope
Holds can target the entire organisation (
org-wide), a specific entity type, or a single record (record_id set). Holds with no entity_type are shown as “Organisation-wide”.Lifecycle events
Lifecycle events
Events are written by platform processes when retention actions execute or holds change. This tab is read-only and cannot be edited.
Related
Platform Foundation
Platform Foundation overview.
Governance & parity
Documentation coverage and governance.
This page documents shipped product behavior. It is not medical, legal, or
billing advice. Verify against your organization’s policies and applicable
regulations before using it for clinical, compliance, or billing decisions.
Protected health information (PHI) shown in the product is governed by your
tenant’s access controls and is never exposed in this documentation.
Documentation sources
Documentation sources
- src/routes/platform.tsx
- src/platform/data-retention/pages/DataRetentionPage.tsx
- src/platform/data-retention/index.ts