> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cassidyai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Configure data retention

> Control how long Workflow run history is stored to meet your organization's data governance requirements.

Data retention settings let you control how long your [Workflow](https://docs.cassidyai.com/workflows/overview.md) run history is stored in Cassidy. This helps you manage data storage and comply with your organization's data governance policies.

> [!NOTE]
>
> Data retention is an **Enterprise-only** feature. [Contact our sales team](https://www.cassidyai.com/demo) to learn more about upgrading to Enterprise access.

## Set a retention policy

**1. Open the Workflow editor**

Navigate to the Workflow you want to configure and click **Edit** in the top-right corner.

![Workflow detail page with Edit button highlighted](https://mintcdn.com/cassidy/MZZYXYVeCvthpwjt/images/workflows/data-retention-edit-button.png?fit=max\&auto=format\&n=MZZYXYVeCvthpwjt\&q=85\&s=ad08b68e0d9de03e5b21bfab5dcf3439)

**2. Access data retention settings**

Click the **...** menu, then under **Advanced**, select **Data Retention**.

![Workflow editor menu showing the Data Retention option under Advanced](https://mintcdn.com/cassidy/MZZYXYVeCvthpwjt/images/workflows/data-retention-menu.png?fit=max\&auto=format\&n=MZZYXYVeCvthpwjt\&q=85\&s=3cca4b3d58af9731ead40f9e3f19e3ea)

**3. Choose a retention type**

Select from the available options:

* **Forever** -- run history is retained indefinitely, or until you manually delete it.
* **Custom** -- specify a retention period based on your needs.

**4. Configure a custom period**

If you selected **Custom**, enter the retention duration (e.g., `15`) and select the unit from the dropdown: **Hours**, **Days**, **Weeks**, **Months**, or **Years**.

![Custom data retention period configuration with duration field and unit dropdown](https://mintcdn.com/cassidy/MZZYXYVeCvthpwjt/images/workflows/data-retention-custom-period.png?fit=max\&auto=format\&n=MZZYXYVeCvthpwjt\&q=85\&s=92b37a6133ae01b07b2a8244e5a72d18)

**5. Save**

Click **Save** to apply the retention settings. Cassidy will automatically delete run history older than the configured period.

## Manually delete run history

You can delete all existing run history for a Workflow at any time, regardless of the retention setting.

**1. Open data retention settings**

Follow the steps above to navigate to the **Data Retention** settings for your Workflow.

**2. Delete run history**

Click **Delete Workflow Run History**, then click **Delete** again to confirm.

![Delete Workflow Run History confirmation dialog](https://mintcdn.com/cassidy/MZZYXYVeCvthpwjt/images/workflows/data-retention-delete-history.png?fit=max\&auto=format\&n=MZZYXYVeCvthpwjt\&q=85\&s=8e8becd3c01f81993ab7ac5ae93f5491)

> [!WARNING]
>
> Once data is deleted -- whether by retention policy or manual deletion -- it cannot be recovered. Make sure your settings align with your organization's data governance requirements before configuring retention.

## Next steps

> [card] [Share and deploy](https://docs.cassidyai.com/workflows/sharing-and-deployment.md)
>
> Manage Workflow permissions, folders, and external deployment.

> [card] [Enterprise security features](https://docs.cassidyai.com/security/enterprise-readiness.md)
>
> Learn about SSO, SAML, RBAC, and other enterprise controls.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.