How to delete folders older than X days?

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

Moderator: Mr_Noodle

How to delete folders older than X days? Tue Jan 21, 2014 9:11 am • by MarceFX
Hi,

I want to delete folders older than 5 days, as an example. I swear I searched the forum, but couldn't get an idea :-/

Thanks
MarceFX
 
Posts: 7
Joined: Tue Jan 21, 2014 9:09 am

Re: How to delete folders older than X days? Wed Jan 22, 2014 12:17 am • by novajunior
You could do something like

If date created is not in the last 5 days
Then move to trash
novajunior
 
Posts: 18
Joined: Thu May 30, 2013 2:38 am

Re: How to delete folders older than X days? Wed Jan 22, 2014 5:08 am • by MarceFX
novajunior wrote:You could do something like

If date created is not in the last 5 days
Then move to trash


Hi,

That's what I had, but it's not working:

Image

This folder is not deleted:

Image

Thanks
MarceFX
 
Posts: 7
Joined: Tue Jan 21, 2014 9:09 am

What does the preview show?
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: How to delete folders older than X days? Thu Jan 23, 2014 3:56 am • by MarceFX
Mr_Noodle wrote:What does the preview show?


The rule does not appear under "Rule matched" for the folder.
MarceFX
 
Posts: 7
Joined: Tue Jan 21, 2014 9:09 am

Check the date created in Hazel's preview. Also, is this folder on a drive that is unusual? Network share? NTFS formatted?
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: How to delete folders older than X days? Thu Jan 23, 2014 5:18 pm • by MarceFX
Mr_Noodle wrote:Check the date created in Hazel's preview. Also, is this folder on a drive that is unusual? Network share? NTFS formatted?


It looks like all is fine, but still... "Date created" is not in the time range I set up:

Image

The folder is a regular one, inside my Dropbox folder :-/
MarceFX
 
Posts: 7
Joined: Tue Jan 21, 2014 9:09 am

Oh, I see now. There is another rule matching the folder. You have to re-arrange the rules so that the rule you want matches it first. Right now, it's matching your subfolders rule.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: How to delete folders older than X days? Sat Jan 25, 2014 5:41 am • by MarceFX
Mr_Noodle wrote:Oh, I see now. There is another rule matching the folder. You have to re-arrange the rules so that the rule you want matches it first. Right now, it's matching your subfolders rule.


Thanks! That was it :-)
MarceFX
 
Posts: 7
Joined: Tue Jan 21, 2014 9:09 am


Return to Support

cron