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

Available in: Lightning Experience
Available in: Professional (API access required), Enterprise, Performance, Unlimited, and Developer editions
Example
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
    Review these considerations before you change the test data retention period or create a cleanup job.
  • 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.
  • Schedule and Run a New Cleanup Job
    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.