Deleting folder not working...

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

Moderator: Mr_Noodle

Deleting folder not working... Mon Jun 30, 2025 4:26 pm • by tcgass
I have set up a rule to delete folders named ‘Images’ on a work drive, but it is not functioning. I have enabled the ‘also apply in subfolders’ rule and ensured that the relevant folders are actually named that way, but it is not successful. For testing purposes, I copied the rule and changed the name to ‘New Folder’. Now, when I create a folder named ‘New Folder’ anywhere on the drive, it is deleted correctly. But it doesn't seem to work with the name ‘Images’. What could be the reason for this?
tcgass
 
Posts: 35
Joined: Mon Oct 29, 2012 10:33 am

Re: Deleting folder not working... Tue Jul 01, 2025 9:33 am • by Mr_Noodle
Can you go through the troubleshooting guide here? https://www.noodlesoft.com/kb/hazel-tro ... ing-guide/

Report back with the results.
Mr_Noodle
Site Admin
 
Posts: 11937
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Deleting folder not working... Tue Jul 01, 2025 9:54 am • by tcgass
The Rule Preview gives me green tickermarks on all folders named "Images" on all folder levels.

The Rule Status Windwow however gives me the following error message under "Date Last Opened" and "Source URL/Address": Error: Could not retrieve metadata for file:/Volumes/Daily Backup/Images
tcgass
 
Posts: 35
Joined: Mon Oct 29, 2012 10:33 am

Re: Deleting folder not working... Wed Jul 02, 2025 9:56 am • by Mr_Noodle
That indicates that the files are not indexed by Spotlight. You'll need to diagnose your Spotlight index to see why that is the case. Check your Spotlight preferences and rebuild the index if necessary.
Mr_Noodle
Site Admin
 
Posts: 11937
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Deleting folder not working... Thu Jul 03, 2025 7:44 am • by tcgass
Thanks for your hint! In fact the drive was marked not to be scanned by spotlight. I've changed that now and the error message has disappeared. Nevertheless, the rule does not work, it does not delete folders named "Images". I duplicated the rule and changed it the way to delete folders named "New folder" - this rule works like a charm. I cannot see any reason, why it should not work with "Images" folders. Is there anything I can check furthermore?
tcgass
 
Posts: 35
Joined: Mon Oct 29, 2012 10:33 am

Re: Deleting folder not working... Thu Jul 03, 2025 9:09 am • by Mr_Noodle
Again, the troubleshooting guide posted earlier should help. Post the results here.
Mr_Noodle
Site Admin
 
Posts: 11937
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Deleting folder not working... Thu Jul 03, 2025 10:35 am • by tcgass
ok, here are the results:

Preview Rule: green checkmarks on everything
Rule Status: no errors, Name and Kind correctly detected
The log shows me: 2025-07-01 11:28:35.106 hazelworker[4058] Imagesi: Rule Images Folder löschen matched.

When I enable the Debug Mode I see the following message, that could be interesting:

2025-07-03 16:32:21.788 86Z3GCJ4MF.com.noodlesoft.HazelHelper[26074] DEBUG: Received metrics for folder /Volumes/Daily Backup: {
directoryDepth = 18446744073709551615;
requestedSchedulingTime = "4001-01-01 00:00:00 +0000";
triggerPaths = "<NoodlePathSet: 0x600000f4b200>\n";
unavailablePaths = "{(\n)}";
}

and

2025-07-03 16:32:15.179 hazelworker[39173][PREDICTION] DEBUG: Predicted fire time for file: /Volumes/Daily Backup/Audio Workdisc and rule Images Folder löschen: 4001-01-01 01:00:00.000 Should poll: 0
tcgass
 
Posts: 35
Joined: Mon Oct 29, 2012 10:33 am


Return to Support