Apex_cleaner.zip 〈No Login〉

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 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/ Apex_Cleaner.zip

JSZip.resource : Used if the cleaner requires client-side zip handling in Lightning Components. Apex_Cleaner_Setting__mdt : A Custom Metadata Type to store

CleanerScheduler.cls : A Schedulable class to automate cleaning on a daily or weekly basis. Package Structure & Components The

: Identifies and removes Attachment or ContentDocument records that are no longer linked to active parent records.

Compress and Extract Zip Files in Apex (Generally Available)

: Run the following in the Developer Console to start the daily cleanup: