Apex_cleaner.zip Link
Compress and Extract Zip Files in Apex (Generally Available)
JSZip.resource : Used if the cleaner requires client-side zip handling in Lightning Components. Apex_Cleaner.zip
Apex_Cleaner_Setting__mdt : A Custom Metadata Type to store retention periods (e.g., "Delete logs older than 30 days"). Compress and Extract Zip Files in Apex (Generally
: Uses metadata settings so admins can adjust cleaning rules without modifying code. '0 0 1 * * ?'
CleanerBatch.cls : A Batchable class for processing large volumes of data without hitting governor limits.
System.schedule('Daily Apex Cleaner', '0 0 1 * * ?', new CleanerScheduler()); Use code with caution. Copied to clipboard
: Update the Apex_Cleaner_Setting__mdt records to define your data retention policy.