Delete the oldest folders regardless of age.

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Delete the oldest folders regardless of age. 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?
mattsh
 
Posts: 9
Joined: Wed Feb 12, 2014 12:13 pm

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.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support