Hi there,
Thanks for reaching out.
Please go through the below link for version purging :
To configure the Version Manager, create a configuration for:
PID com.day.cq.wcm.core.impl.VersionManagerImpl
The following options are available:
- versionmanager.createVersionOnActivation (Boolean, default: true)
whether to create a version when pages are activated.
A version is created unless the replication agent is configured to suppress creation of versions, which is honoured by the Version Manager
A version is only created if the activation happens on a paths that is contained in versionmanager.ivPaths (see below). - versionmanager.ivPaths (String[], default: {"/"})
paths on which versions are implicitly created on activation if versionmanager.createVersionOnActivation is true. - versionmanager.purgingEnabled (Boolean, default: false)
whether to enable purging when new versions are created - versionmanager.purgePaths (String[], default: {"/content"})
on which paths to purge versions when new versions are created - versionmanager.maxAgeDays (int, default: 30)
on purge, any version older than this value will be removed. 999999 or any other high value can be used to ignore this parameter - versionmanager.maxNumberVersions (int, default 5)
on purge, any version older than the n-th newest version will be removed. 999999 or any other high value can be used to ignore this parameter
Thanks!