Maximum versions in AEM | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Kunwarsaluja

This configuration of max 5 version and max age 30 related to to version purge i.e deleting versions which are not in use. Only if you run or  schedule a maintenance task to purge versions this would come into play.

There is no finite limit on how many versions you can create in the system.

8 replies

smacdonald2008
May 15, 2018

I do not understand your question - can you please provide more details on what you are trying to do.

Adobe Employee
May 15, 2018

By default, if you don't run the version purge there isn't a  finite limit to the no. of versions of pages/assets  to be retained but that might affect  overall system performance

Once you run the version purge, it then picks up from the config and by default it would 5 versions that are 30 days old.

May 16, 2018

HI,

I am running version purging. i have configure the version manager with maximum version of 5 and maximum age as 30.

however, i want to know how many versions can AEM system able to create. i have seen few pages has more than 30 versions.

is there any possible that user can create more than 200 versions ?

KunwarsalujaAdobe EmployeeAccepted solution
Adobe Employee
May 16, 2018

This configuration of max 5 version and max age 30 related to to version purge i.e deleting versions which are not in use. Only if you run or  schedule a maintenance task to purge versions this would come into play.

There is no finite limit on how many versions you can create in the system.

smacdonald2008
May 16, 2018

Nice response!

kautuk_sahni
Community Manager
Community Manager
May 16, 2018

Hey,

versionmanager.maxAgeDays -> default: 30, on purge, any version older than this value will be removed. If this value is less than 1, purging is not performed based on the age of the version

versionmanager.maxNumberVersions ->default 5, on purge, any version older than the n-th newest version will be removed. If this value is less than 1, purging is not performed based on the number of versions

Documentation source:- Version Purging

Kautuk Sahni
May 17, 2018

Thank you all for the response,

i have configured maxAgeDays = 365 and maxNumberVersions = 200,( as per my client requirement) and its working as expected,

thank you again for your kind help 

May 29, 2018

HI,

the behavior of version purging task is performing only if you create a new version.

if there was  5 versions available in the system out of 5 .

4 versions with 30 days old.and max version is 2

and i want to remove the version which are 30 days old.

this case version purging is running only when the new version is created.

please advise how to do this purging task automatically without creating a new version ?