Page 1 of 1

Delete the oldest folders regardless of age.

PostPosted: Mon Nov 06, 2017 7:48 am
by mattsh
I have a backup program that creates a new folder each time it runs. In the new folder are changes that occurred since the prior backup. What I would like to do is keep the newest 3 folders of changes, regardless of how old they are, and delete anything older than that. And then immediately empty the trash. So the 4th oldest folder would be deleted whether it is 1 week, 1 month, or 1 year old, and the 3 newest folders would remain.

Can this be done?

Re: Delete the oldest folders regardless of age.

PostPosted: Mon Nov 06, 2017 11:42 am
by Mr_Noodle
You can use a condition like "Date added is not among the 3 most recent" to match everything except the 3 most recently added folder.