Page 1 of 1
How to delete folders older than X days?

Posted:
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
Re: How to delete folders older than X days?

Posted:
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
Re: How to delete folders older than X days?

Posted:
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:

This folder is not deleted:

Thanks
Re: How to delete folders older than X days?

Posted:
Wed Jan 22, 2014 4:22 pm
by Mr_Noodle
What does the preview show?
Re: How to delete folders older than X days?

Posted:
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.
Re: How to delete folders older than X days?

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

Posted:
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:

The folder is a regular one, inside my Dropbox folder :-/
Re: How to delete folders older than X days?

Posted:
Fri Jan 24, 2014 4:31 pm
by Mr_Noodle
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.
Re: How to delete folders older than X days?

Posted:
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
