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.

Required Editions

Available in: Lightning Experience
Available in: Professional (API access required), Enterprise, Performance, Unlimited, and Developer editions
User Permissions Needed
To schedule and run a new cleanup job: DevOps Testing Manager
  1. From Setup, in the Quick Find Box, enter Scheduled Jobs, and then select Scheduled Jobs.
  2. On the All Scheduled Jobs page, click Schedule Apex.
  3. Enter a job name.
  4. Click the lookup icon next to the Apex Class field. From the list, select CleanupService.
  5. Define a schedule to run the job.
  6. Save your changes.
    The new cleanup job runs automatically on the scheduled start date.

Monitor your cleanup job to prevent unwanted data loss and maintain system health. To review cleanup jobs, from Setup, in the Quick Find box, enter Scheduled Jobs, and then select Scheduled Jobs. Review the job details, such as its start date and time and the next scheduled date and time.