- DarkLight
Delete Error Logs
- DarkLight
Logs occupy a large space on Salesforce org. You can create a schedule and delete the logs automatically to keeps logs at an optimal space. This section deals with scheduling for Log deletion.
Log in to Salesforce org.
Search for AD Desktops in the App launcher.
Select the AD Desktops tab.
Click New to add a record.
Enter a name in the AD Desktop Name field.
Enter the AD Desktop URL.
Leave the Show in Utilitybar checkbox unselected.
Select the isRun checkbox.
Click Save.
Navigate to Setup.
In the Quick Find box, search Apex Classes.
Select Apex Classes.
Click the Schedule Apex button.
Enter a name in the Job Name field.
Select the LogDeleteBatchScheduler option.
Select the Frequency and Recurrence.
Select a Start Date, End Date, and a Preferred Start Time.
Click Save.
The application deletes the logs at the scheduled date and time.