---
title: Data Retention
slug: user-guide-10x/data-retention
docTags: 
createdAt: 2025-06-18T11:01:36.086Z
---

﻿The data retention configuration allows you to manage how long the records and record history data are stored in your application. It includes options for setting custom retention periods, preserving parent records, and specifying batch sizes for efficient data cleanup. This functionality supports the retention of various data types, including records, record history, and logs.

**Note:** The Data Retention feature is behind a feature flag. To enable Data Retention for your account, contact Swimlane support.

## Roles and Permissions

Only users with administrative privileges can configure data retention settings. Ensure you have the appropriate permissions to access the **DATA RETENTION** and **Advanced Configuration** sections.

## Deleting Records and Record History

To delete records and record history:

1. Navigate to **Applications and Applets**.
2. Go to the **Settings** tab.
3. The **Edit Application Settings** window will appear.
4. Click the **DATA RETENTION** tab.
5. Toggle **Delete Records Data** and **Delete Record History Data** to ON.
   ::Image[]{src="https://api.archbee.com/api/optimize/511c8QBH-VHiwWnyzIwUb/GdCeIEKioycSVsl39v-SX_data-retention.png" size="34" width="1112" height="822" position="center" showCaption="false"}

- Delete Records Data
- *Parent Records Retention*: Select the "Allow Parent Records to be Retained" option to exclude parent records from deletion. When parent records are deleted, the oldest remaining record will automatically become the parent record.
- *Batch Size*: Specify the batch size for data deletion.
- SettingDescriptionDefault ValueRangeRetention PeriodNumber of days records are retained365 days1 - 5,000 daysBatch SizeNumber of records processed per deletion batch1,0001,000 - 15,000
- **Delete Record History Data**

**Note:**&#x49;f there are four applications, data retention will occur as follows: Application 1 at 12 PM, Application 2 at 12 AM, Application 3 at 8 AM, and Application 4 at 4 PM.

## Deleting Logs

To configure Swimlane log retention in the Advanced Settings:

1. Navigate to **SETTINGS** > **Advanced**.
2. The **Advanced Configuration** window will appear.
3. Turn on the **Enable Logs Deletion** toggle.
4. Specify the number of days to retain logs before deletion. The retention period can range from 1 to 5,000 days, with a default of 90 days.
   ::Image[]{src="https://api.archbee.com/api/optimize/511c8QBH-VHiwWnyzIwUb/mcVg3PbRB_GIrmVdp52Qq_log-retention.png" size="38" width="1820" height="1000" position="center" showCaption="false"}

