Apex_cleaner.zip May 2026
: Automatically deletes ApexLog records to prevent storage bloat.
CleanerBatch.cls : A Batchable class for processing large volumes of data without hitting governor limits.
: 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
: Identifies and removes Attachment or ContentDocument records that are no longer linked to active parent records.
The manifest file listing all components for deployment via Workbench or SFDX. : Automatically deletes ApexLog records to prevent storage
Compress and Extract Zip Files in Apex (Generally Available)
Apex_Cleaner_Setting__mdt : A Custom Metadata Type to store retention periods (e.g., "Delete logs older than 30 days"). Apex_Cleaner.zip
: Run the following in the Developer Console to start the daily cleanup: