Apex_cleaner.zip
: Run the following in the Developer Console to start the daily cleanup:
ApexCleaner.cls : The main engine containing logic to query and delete records (e.g., old Debug Logs, stalled Flow Interviews, and expired Tasks).
Compress and Extract Zip Files in Apex (Generally Available) Apex_Cleaner.zip
: Navigate to Static Resources in Setup and upload the Apex_Cleaner.zip if using it for LWC, or use Deployment Settings for code installation.
: Utilizes the Compression namespace (available in Spring '26) to archive data before deletion if backups are required. Deployment Instructions : Run the following in the Developer Console
CleanerTest.cls : Unit tests ensuring 75%+ code coverage for deployment.
: Automatically deletes ApexLog records to prevent storage bloat. old Debug Logs
: Uses metadata settings so admins can adjust cleaning rules without modifying code.

