05-18-2017 01:42 AM
Hello,
we have disk size issues with our Alfresco 4.2.3
We use the "versionable" aspect for our documents.
We want to be able to identify those versionable documents and consider to delete "older" version of the documents after a certain time, eg, i want to delete the old versions of this document 6 months after it has been validated in a specific workflow.
Can somebody give me some hints about this?
TIA
Dirk
05-18-2017 06:32 AM
Hi
You will need to develop this yourself since share does not allow selecting/deleting specific versions.
But all the functionality is provided. Check this post: Alfresco: Max Version Policy – I exist as I am
05-19-2017 11:49 PM
Hi Dirk,
You can write a cron scheduler that can check for docs that have been validated for over 6 months.
The context file containing the information about the cron should be placed at repo-project/src/main/amp/config/alfresco/extension and should look like this.
You can also checkout this link for the logic that you should replicate to delete the versions of the file.
Thanks
Hiten Rastogi
Explore our Alfresco products with the links below. Use labels to filter content by product module.