---
schema_version: "1"
id: 7c7e7f7da7b3ac87757fc6832babc5cd568aa87c0cc49f92afad37d305c62011
title: Schedule and Run a New Cleanup Job
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/devops_testing_schedule_cleanup.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.devops_testing_schedule_cleanup.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 9288847024093ea123c5462a208623898181f81d48057dc544525e56218dfd27
description: 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.
products:
  - Salesforce Platform
release: "264"
---
# 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

<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="d30509e78">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d30509e78 "> To schedule and run a new cleanup job:</td>

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

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

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.