Apex_cleaner.zip

CleanerTest.cls : Unit tests ensuring 75%+ code coverage for deployment.

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

: Utilizes the Compression namespace (available in Spring '26) to archive data before deletion if backups are required. Deployment Instructions CleanerTest

: Update the Apex_Cleaner_Setting__mdt records to define your data retention policy. Apex_Cleaner.zip

: Automatically deletes ApexLog records to prevent storage bloat.