Periodically clean external directory
We have a directory of files /Test
This file directory grows and grows. What we want is periodically clean this directory with all files that have a modified date higher as 90 days.
How would we approach and build such a thing? I am thinking of a complex event , but I don’t have an example like this. Do you have any examples or videos on how to achieve such a thing?
0
-
This can be achieved by writing a Custom plugin with the help of which you can check the Modified date of file and deleting after that. The Process flow with this CP can be binded with a Calendar event that will trigger on a specified date or interval on which you want the files to be deleted.
0
Post is closed for comments.
Comments
1 comment