VersionPurge job doesn’t delete versions as expected in AEM
Adobe Experience Manager (AEM) VersionPurge may not delete older versions when they haven’t exceeded both the configured retention period and maximum generation count. To resolve the issue, verify the VersionPurge schedule and retention settings, check whether the versions meet the purge criteria, and monitor the next scheduled maintenance run.
Description description
Environment
Adobe Experience Manager (AEM) (all versions)
Issue/Symptoms
VersionPurgeis configured with a retention period and maximum number of generations, for example, 3 days and 5 generations, but expected versions aren’t deleted after scheduled maintenance.AuditlogPurge runs as expected, whileVersionPurgedoesn’t remove versions.- Logs may show that zero versions were purged even though older versions exist.
Root cause
VersionPurge deletes only versions that exceed both the configured retention period, for example, 3 days, and the maximum number of generations, for example, 5. Versions that haven’t met these criteria aren’t purged.
Resolution resolution
Follow the steps below to resolve the issue:
- Confirm that the
VersionPurgejob runs as scheduled during the maintenance window. - Review the retention policy settings in the relevant configuration files. Ensure that they specify the intended retention period, for example, 3 days, and number of generations, for example, 5.
- Check the creation dates of the versions that you expect to be purged. For example, if the retention period is 3 days, verify that the versions are older than 3 days from the current date.
- If the versions haven’t exceeded the configured retention period or generation count, they won’t be deleted. Wait until the next scheduled maintenance window after the retention period has elapsed.
- After the retention period has passed, monitor the next VersionPurge execution. If the expected versions still aren’t deleted, collect the relevant logs and configuration files for further investigation.
- If the issue persists, contact Adobe Support with the configuration details and recent logs.
recommendation-more-help
experience-cloud-kcs-help-kbarticles