Inconsistent Version Purging in AEMaaCS
In AEMaaCS, inconsistent version purging occurs when multiple configuration mechanisms are active at the same time. This leads to delayed or unpredictable purging, retention of more versions than expected, and unpurged DAM asset versions. To fix this, use the MaintenanceTasks YAML as the sole configuration for bulk version purging and remove any legacy configurations.
Description description
Environment
Adobe Experience Manager (AEM) as a Cloud Service
Issue/Symptoms
- Version purging does not trigger or follows incorrect rules when using YAML-based maintenance configuration.
- Legacy
granite_dailyandVersionManagerImplconfigurations cause delayed or inconsistent execution. - More versions are retained than configured (for example, 3 instead of 1).
- DAM asset versions remain unpurged.
- Logs do not clearly indicate execution timing or scope.
Resolution resolution
To fix this issue, follow these steps:
- Deploy the
MaintenanceTasksYAML configuration via the Config pipeline to define version purge rules, including paths, maximum age, and minimum or maximum versions. - Remove all legacy Granite and
VersionPurgeTaskOSGi configurations from the environment to prevent overlapping logic. - Use
VersionManagerImplonly if per-save pruning is explicitly required; otherwise, disable it. - Allow the Adobe-managed weekly maintenance window to execute the purge job according to your deployed YAML rules. The schedule is fixed per environment and is not affected by deployment time.
- After the next scheduled maintenance window, review logs and check version counts to confirm that purging occurs as expected.
Notes:
- The bulk version purge job runs on a fixed weekly schedule managed by Adobe. Customers cannot change this schedule but can control purge rules via YAML.
- Only one mechanism should be active for predictable results, preferably the YAML-driven job supported by AEM as a Cloud Service.
- The
minNumberVersionssetting specifies a minimum number of versions to retain, not an exact count. - Purge behavior becomes consistent once only the YAML-driven job is used.
Related reading
recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f