Apex_cleaner.zip Online
Apex_Cleaner_Setting__mdt : A Custom Metadata Type to store retention periods (e.g., "Delete logs older than 30 days").
: Navigate to Static Resources in Setup and upload the Apex_Cleaner.zip if using it for LWC, or use Deployment Settings for code installation. Apex_Cleaner.zip
ApexCleaner.cls : The main engine containing logic to query and delete records (e.g., old Debug Logs, stalled Flow Interviews, and expired Tasks). Apex_Cleaner_Setting__mdt : A Custom Metadata Type to store
JSZip.resource : Used if the cleaner requires client-side zip handling in Lightning Components. old Debug Logs
System.schedule('Daily Apex Cleaner', '0 0 1 * * ?', new CleanerScheduler()); Use code with caution. Copied to clipboard