: Identifies and removes Attachment or ContentDocument records that are no longer linked to active parent records.
CleanerBatch.cls : A Batchable class for processing large volumes of data without hitting governor limits.
: Update the Apex_Cleaner_Setting__mdt records to define your data retention policy. Apex_Cleaner.zip
The manifest file listing all components for deployment via Workbench or SFDX.
Apex_Cleaner_Setting__mdt : A Custom Metadata Type to store retention periods (e.g., "Delete logs older than 30 days"). Apex_Cleaner.zip
: Automatically deletes ApexLog records to prevent storage bloat.
: Uses metadata settings so admins can adjust cleaning rules without modifying code. Apex_Cleaner.zip
: Utilizes the Compression namespace (available in Spring '26) to archive data before deletion if backups are required. Deployment Instructions
