Versionable docs in Alfresco : identify and delete.

cancel
Showing results for 
Search instead for 
Did you mean: 
dwautier
Member II

Versionable docs in Alfresco : identify and delete.

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

2 Replies
mrks_js1
Established Member II

Re: Versionable docs in Alfresco : identify and delete.

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 

hiten_rastogi1
Established Member

Re: Versionable docs in Alfresco : identify and delete.

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