Deleting Old Logs and Jobs
To schedule the job:
- Click Setup | Develop | Apex Classes.
- Search for the DeleteOldAsyncDataSchedule Apex Class.
- Click the name of the DeleteOldAsyncDataSchedule Apex Class.
- Return to the list of Apex Classes and click Schedule Apex.
- Enter a meaningful Job Name.
- Enter the Apex Class DeleteOldAsyncDataSchedule.
- Choose the frequency that you want the job to run:
- Weekly. Choose the days of the week on which the job is to run.
- Monthly. Choose the day of the month either by specifying a number such as day 17 of every month, or by specifying a pattern such as the 3rd Tuesday of every month.
- Enter the date range for which the job is to run.
- Enter a Preferred Start Time for the job.
- Click Save.