Configuring automatic pruning of library versions
As an administrator, you can enable automatic pruning and specify a maximum number of unnamed versions to keep for library items.
About this task
Automatic pruning is useful if you, for example, want to enforce a continuous retention policy, instead of running manual cleanup commands. When the configured limit is exceeded, the oldest unnamed versions are removed automatically when new versions are created.
The pruning takes effect when a user saves a new version of a file. Only configuring automatic pruning does not affect the version history immediately.
To change the versioning settings for a specific library item, see Changing version history settings for a library item.
Before you begin
Procedure
Server configuration example
The following is an example of a server configuration where version history is enabled and automatic pruning keeps the 10 most recent unnamed versions for each item:
<configuration>
<library>
<versioning>
<enabled>true</enabled>
<disabled-types/>
<pruning>
<enabled>true</enabled>
<default-max-versions>10</default-max-versions>
</pruning>
</versioning>
...
</library>
...
</configuration>
What to do next
For one-time cleanup of older versions that already exist, use the delete-library-versions command.