Apex_cleaner.zip
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/
: Automatically deletes ApexLog records to prevent storage bloat. Apex_Cleaner.zip
Apex_Cleaner_Setting__mdt : A Custom Metadata Type to store retention periods (e.g., "Delete logs older than 30 days"). The package is designed for Salesforce environments to
Compress and Extract Zip Files in Apex (Generally Available) Apex_Cleaner_Setting__mdt : A Custom Metadata Type to store
: Run the following in the Developer Console to start the daily cleanup:
The manifest file listing all components for deployment via Workbench or SFDX.
: Navigate to Static Resources in Setup and upload the Apex_Cleaner.zip if using it for LWC, or use Deployment Settings for code installation.