SCHED_PurgeRecords
Class · Group: Bulk DML
apex
global inherited sharing class SCHED_PurgeRecords extends SCHED_BaseExtends: SCHED_Base
A scheduled job that deletes records from a specified Salesforce object based on age or all records, configurable via attributes.
Since: 1.0
Example:
apex
SCHED_PurgeRecords job = new SCHED_PurgeRecords();
DTO_NameValues attributes = new DTO_NameValues();
attributes.add('objectName', 'LogEntry__c');
attributes.add('minimumNumberOfDays', '30');
job.setParameterValues(attributes);
System.schedule('Purge Old Logs', '0 0 1 * * ?', job);See Also: SCHED_Base, UTIL_PurgeRecords