---
schema_version: "1"
id: acf3959294bafb1a056fa53ae8e8087f5843fe1da1185e604e485d358b730886
title: Change the Retention Period for Test Data
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/devops_testing_change_retention.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.devops_testing_change_retention.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 8a2cda2b48d1139203efb07fbaf5325e09ab8e8523cad1e0c2a47563c6de0ad9
description: Change the test data retention period as needed to balance legal compliance, business requirements, and performance. The default retention period is 30 days.
products:
  - Salesforce Platform
release: "264"
---
# Change the Retention Period for Test Data

Change the test data retention period as needed to balance legal compliance, business requirements, and performance. The default retention period is 30 days.

### 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>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d6233e78">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d6233e78 ">To change the retention period:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d6233e78 ">DevOps Testing Manager</td>

          </tr>
        </tbody>
      </table>

See [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.").

1. From Setup, in the Quick Find box, enter Custom Metadata Types, and then select **Custom Metadata Types**.
2. On the All Custom Metadata Types page, in the row for the Test Data Retention custom metadata type, click **Manage Records**.
3. In the list of custom metadata records, in the row for the Data Retention Period custom metadata record, click **Edit**.
4. Update the **Days** field and then save your changes.