Apex_cleaner.zip Site

Compress and Extract Zip Files in Apex (Generally Available)

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 to start the daily cleanup: Apex_Cleaner.zip

The manifest file listing all components for deployment via Workbench or SFDX.

The package is designed for Salesforce environments to automate the removal of obsolete data, temporary logs, and orphaned records. This utility helps maintain storage limits and improves system performance by leveraging Apex Compression for efficient metadata and log handling. Package Structure & Components The .zip file contains the following directory structure: classes/ Compress and Extract Zip Files in Apex (Generally

: Navigate to Static Resources in Setup and upload the Apex_Cleaner.zip if using it for LWC, or use Deployment Settings for code installation.

CleanerTest.cls : Unit tests ensuring 75%+ code coverage for deployment. This utility helps maintain storage limits and improves

CleanerBatch.cls : A Batchable class for processing large volumes of data without hitting governor limits.