> For the complete documentation index, see [llms.txt](https://docs.countercyclical.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.countercyclical.io/workspace-settings/data-retention.md).

# Data Retention

Control how long workspace records remain available before scheduled disposal.

Data Retention provides workspace-level governance controls for automatically disposing of historical data. Configure these settings from [**Settings › Security › Data Retention**](https://dashboard.countercyclical.io/settings/workspace/security/retention).

See also [Audit Logs](https://docs.countercyclical.io/workspace-settings/audit-logs) and [Trash](https://docs.countercyclical.io/workspaces/trash).

Your organization remains responsible for configuring retention periods in accordance with its legal, regulatory, contractual, and litigation-hold obligations.

### Retention Controls

#### Automated Retention

Enable **Automated Retention** to apply the configured retention schedule automatically each night.

When Automated Retention is disabled, the configured retention rules are not enforced.

{% hint style="danger" %}
**Trash Still Expires After 30 Days**

**Items in Trash remain subject to permanent deletion after 30 days**, even when automated retention is turned off.
{% endhint %}

Disposal is workspace-scoped and processed in limited batches to protect application and database performance.

#### Legal Hold

Enable **Legal Hold** when records must be preserved.

While Legal Hold is active, automated disposal is suspended across every retention category. This allows the workspace to preserve records while legal, regulatory, investigative, or other preservation obligations are in effect.

### Retention Schedule

The Retention Schedule lets you configure retention independently for different categories of workspace data. Selecting **Retain Indefinitely** prevents automatic deletion for that category.

#### Items in Trash

Controls how long soft-deleted workspace resources remain recoverable before they are permanently removed.

Available retention periods are:

* 7 days
* 14 days
* 30 days
* 90 days
* 180 days
* 1 year
* Retain indefinitely

The default shown is **30 days**.

#### Audit Logs

Controls how long security, access, administrative, and policy-change evidence is retained.

Available periods include **1, 3, 5, 6, 7, and 10 years**, as well as **Retain Indefinitely**. The default shown is **7 years**.

#### Activity History

Controls retention of workspace resource activity used for traceability and collaboration history.

Available periods range from **30 days through 10 years**, with **Retain Indefinitely** also available. The default shown is **7 years**.

#### Version History

Controls retention of historical resource snapshots used for review, comparison, and recovery.

Available periods range from **30 days through 10 years**, with **Retain Indefinitely** also available. The default shown is **7 years**.

### Save a Retention Policy

Choose the required period for each retention category, then select **Save Retention Policy** to apply the configuration. Use **Reset** to discard unsaved changes.

Retention periods should generally be selected according to your organization's governing record-retention requirements rather than simply maximizing or minimizing storage duration.

### Last Enforcement Run

The **Last Enforcement Run** section reports the status of scheduled retention enforcement. Before the policy has completed its first scheduled run, it indicates that no enforcement run has completed yet.

After automated enforcement begins, use this area to confirm that the retention policy is being processed as expected.

#### Related Pages

{% content-ref url="/pages/JhENIV7m20OW9wnx4Edn" %}
[Audit Logs](https://docs.countercyclical.io/workspace-settings/audit-logs.md)
{% endcontent-ref %}

{% content-ref url="/pages/gVzZewr27WV4IfUiaagj" %}
[Trash](https://docs.countercyclical.io/workspaces/trash.md)
{% endcontent-ref %}

{% content-ref url="/pages/NTP6iwa82V2ZuIQT3Uhe" %}
[Data Export](https://docs.countercyclical.io/account-settings/data-export.md)
{% endcontent-ref %}
