cancel
Showing results for 
Search instead for 
Did you mean: 

Delete files older than X days

dranakan
Champ on-the-rise
Champ on-the-rise
Hello,

I need to delete some files after which are older than X days in a repository. I thought about a rules starting action doing this but rules are starting
with "add/update/delete or enter/leave folder" and I need to have something running each days for exemple. What is the best way to do what I want ? Has someone done this ?

Thanks
2 REPLIES 2

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
hi, you have scheduled actrions http://wiki.alfresco.com/wiki/Scheduled_Actions


you would need lucene query to search files older then : @cm\\:modified:["+date1s?string+"  TO "+date2s?string+"]

this would be time format :yyyy-MM-ddT00:00:00

dranakan
Champ on-the-rise
Champ on-the-rise
Thanks