---
schema_version: "1"
id: 0e5b7a3755183dc10fa6358caa1c0ae22e849e4444d1c1bb716ec957090d9dd6
title: Test Data Retention and Cleanup
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/devops_testing_data_retention.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.devops_testing_data_retention.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 8a44aec9c6474a0faf8eaf0edc80800a3be8a798477bcec14aaa36e411653d7e
description: In DevOps Testing, the data retention and cleanup processes automatically manage historical test data. A daily cleanup job automatically deletes data older than the set retention period, improving performance and data governance.
products:
  - Salesforce Platform
release: "264"
---
# Test Data Retention and Cleanup

In DevOps Testing, the data retention and cleanup processes automatically manage historical test data. A daily cleanup job automatically deletes data older than the set retention period, improving performance and data governance.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col style="width:100%"></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Professional</strong> (API access required), <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> editions</td></tr></tbody></table>

![Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-devops_center-264-0-0-production-enus/166010c3-4c34-4087-92ad-aea917baf524/images/icon_example.png)

Example A test suite execution record from June 1, 2025, has a 30-day data retention period. The cleanup job runs on July 1, 2025. On this day, the cleanup job determines that the test suite execution record from June 1, 2025, is 30 days old and automatically deletes it.

- **[Considerations for Test Data Cleanup](https://help.salesforce.com/s/articleView?id=platform.devops_testing_cleanup_considerations.htm&release=264.0.0&type=5)**  
    Review these considerations before you change the test data retention period or create a cleanup job.
- **[Change the Retention Period for Test Data](https://help.salesforce.com/s/articleView?id=platform.devops_testing_change_retention.htm&release=264.0.0&type=5)**  
    Change the test data retention period as needed to balance legal compliance, business requirements, and performance. The default retention period is 30 days.
- **[Schedule and Run a New Cleanup Job](https://help.salesforce.com/s/articleView?id=platform.devops_testing_schedule_cleanup.htm&release=264.0.0&type=5)**  
    Customize the cleanup process to meet your specific needs by scheduling a new cleanup job. Review the details of the default cleanup job and create a cleanup job as needed. When you create a cleanup job, you can retain or delete the default cleanup job.