Deleting Old Logs and Jobs

You can schedule the DeleteOldAsyncDataSchedule Apex job to delete old logs and finished jobs. This deletes old jobs and logs that are older than the values set in the Background Process settings custom setting. You can also opt to receive notifications when jobs or logs are deleted successfully. See Background Process Settings.

To schedule the job:

  1. Click Setup | Develop | Apex Classes.
  2. Search for the DeleteOldAsyncDataSchedule Apex Class.
  3. Click the name of the DeleteOldAsyncDataSchedule Apex Class.
  4. Return to the list of Apex Classes and click Schedule Apex.
  5. Enter a meaningful Job Name.
  6. Enter the Apex Class DeleteOldAsyncDataSchedule.
  7. Choose the frequency that you want the job to run:
  8. Enter the date range for which the job is to run.
  9. Enter a Preferred Start Time for the job.
  10. Click Save.

Related Concepts

Logs

Related Tasks

Viewing Event Logs

Monitoring the Progress of a Background Process

Reference

Job Fields

Log Fields

© Copyright 2009-2020 FinancialForce.com, inc. All rights reserved.
Various trademarks held by their respective owners.