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

Available in: Lightning Experience
Available in: Professional (API access required), Enterprise, Performance, Unlimited, and Developer editions
User Permissions Needed
To change the retention period: DevOps Testing Manager

See Considerations for Test Data Cleanup.

  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.