Apex_cleaner.zip ❲2026 Release❳
: Run the following in the Developer Console to start the daily cleanup:
Compress and Extract Zip Files in Apex (Generally Available) 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). : Run the following in the Developer Console
: Update the Apex_Cleaner_Setting__mdt records to define your data retention policy. old Debug Logs
Apex_Cleaner_Setting__mdt : A Custom Metadata Type to store retention periods (e.g., "Delete logs older than 30 days").
CleanerTest.cls : Unit tests ensuring 75%+ code coverage for deployment.