Page 1 of 1

Apps deleted by AppDelete not emptied from trash by Hazel

PostPosted: Sat Apr 19, 2014 2:09 pm
by asuskner
I have discovered that any applications that are deleted by AppDelete cannot be emptied from trash by Hazel (looks like AppDelete changes permissions? They are removed if I do an empty trash myself, though). Is this a bug or something that can be corrected via some settings?

Any assistance would be appreciated.

This is an example from the log:
....Removing AppDelete doo.
2014-04-19 14:03:02.555 hazelworker[811] Could not remove AppDelete doo: Error Domain=NSCocoaErrorDomain Code=513 "“AppDelete doo” couldn’t be removed because you don’t have permission to access it." UserInfo=0x7f95b0c93950 {NSFilePath=/Users/AUser/.Trash/AppDelete doo, NSUserStringVariant=(
Remove
), NSUnderlyingError=0x7f95b0c93860 "The operation couldn’t be completed. Permission denied"}
2014-04-19 14:03:02.555 hazelworker[811] [Error] Could not remove file: File AppDelete doo could not be removed from the Trash.

Re: Apps deleted by AppDelete not emptied from trash by Haze

PostPosted: Mon Apr 21, 2014 2:58 pm
by Mr_Noodle
It may be that the original permissions of the app were set that way. Right now, you'll have to either (a) fix the permissions or (b) remove them manually.

Re: Apps deleted by AppDelete not emptied from trash by Haze

PostPosted: Fri Jun 26, 2015 9:45 am
by ralvy
Mr_Noodle wrote:It may be that the original permissions of the app were set that way. Right now, you'll have to either (a) fix the permissions or (b) remove them manually.


How do you remove a file from Trash without emptying the entire Trash folder?

Re: Apps deleted by AppDelete not emptied from trash by Haze

PostPosted: Fri Jun 26, 2015 11:47 am
by Mr_Noodle
You can do it from the commandline. If you are not familiar with it, I suggest checking out some tutorials online. Be careful since you are removing files permanently.

Re: Apps deleted by AppDelete not emptied from trash by Haze

PostPosted: Tue Aug 25, 2015 9:18 am
by steve75932
I don't like to resurrect old threads, but nor do I like to start new ones with something that has already been asked before.

I'm suffering the same problem that Hazel can't delete any apps that have been sent to my Trash Can. I am using the feature 'Delete files after they have been sitting in the Trash for more than'... in my case 1 month.

So I gather this is a limitation between Hazel and OS X, are there any plans for this to be fixed in the future?

Thanks.

Re: Apps deleted by AppDelete not emptied from trash by Haze

PostPosted: Tue Aug 25, 2015 12:47 pm
by Mr_Noodle
Can you post the specific log messages you are getting indicating this?

Re: Apps deleted by AppDelete not emptied from trash by Haze

PostPosted: Tue Aug 25, 2015 9:59 pm
by steve75932
2015-08-26 02:54:25.680 hazelworker[17157] File PreyConfig.app has been sitting in the trash for too long. Purging.
2015-08-26 02:54:25.680 hazelworker[17157] Removing PreyConfig.app.
2015-08-26 02:54:25.695 hazelworker[17157] Could not remove PreyConfig.app: Error Domain=NSCocoaErrorDomain Code=513 "“PreyConfig” couldn’t be removed because you don’t have permission to access it." UserInfo=0x7ff72c8234f0 {NSFilePath=/Users/redacted/.Trash/PreyConfig.app, NSUserStringVariant=(
Remove
), NSUnderlyingError=0x7ff72c824330 "The operation couldn’t be completed. Permission denied"}
2015-08-26 02:54:25.695 hazelworker[17157] [Error] Could not remove file: File PreyConfig.app could not be removed from the Trash.
2015-08-26 02:54:33.708 hazelworker[17157] File 1.3.9 has been sitting in the trash for too long. Purging.
2015-08-26 02:54:33.709 hazelworker[17157] Removing 1.3.9.
2015-08-26 02:54:33.720 hazelworker[17157] Could not remove 1.3.9: Error Domain=NSCocoaErrorDomain Code=513 "“1.3.9” couldn’t be removed because you don’t have permission to access it." UserInfo=0x7ff72bc0cb40 {NSFilePath=/Users/redacted/.Trash/1.3.9, NSUserStringVariant=(
Remove
), NSUnderlyingError=0x7ff72bc164d0 "The operation couldn’t be completed. Permission denied"}
2015-08-26 02:54:33.721 hazelworker[17157] [Error] Could not remove file: File 1.3.9 could not be removed from the Trash.
2015-08-26 02:54:33.724 hazelworker[17157] File DrCleaner.app has been sitting in the trash for too long. Purging.
2015-08-26 02:54:33.724 hazelworker[17157] Removing DrCleaner.app.
2015-08-26 02:54:33.739 hazelworker[17157] Could not remove DrCleaner.app: Error Domain=NSCocoaErrorDomain Code=513 "“Dr. Cleaner” couldn’t be removed because you don’t have permission to access it." UserInfo=0x7ff72bd045f0 {NSFilePath=/Users/redacted/.Trash/DrCleaner.app, NSUserStringVariant=(
Remove
), NSUnderlyingError=0x7ff72bd097b0 "The operation couldn’t be completed. Permission denied"}
2015-08-26 02:54:33.739 hazelworker[17157] [Error] Could not remove file: File DrCleaner.app could not be removed from the Trash.

It happens with a lot (all?) of apps. I can empty the whole Trash Can manually if I so wish and that works fine.

Re: Apps deleted by AppDelete not emptied from trash by Haze

PostPosted: Wed Aug 26, 2015 12:06 pm
by Mr_Noodle
It boils down to a permissions issue. Hazel can't/won't delete files that require elevated permissions. In such cases, you have to handle those manually.

Re: Apps deleted by AppDelete not emptied from trash by Haze

PostPosted: Mon Oct 31, 2016 6:20 pm
by Dente
The easiest way to manually remove a file from the trash seems to be:
  1. Open the trash
  2. Select the file
  3. Press COMMAND-OPTION-DELETE

Re: Apps deleted by AppDelete not emptied from trash by Haze

PostPosted: Tue Nov 01, 2016 3:39 pm
by Mr_Noodle
You can also right click on the file and do "Delete immediately"

Re: Apps deleted by AppDelete not emptied from trash by Haze

PostPosted: Tue Nov 01, 2016 3:43 pm
by ralvy
I haven't seen this happen in a while, so can't test either suggestion. If memory serves me here, only emptying the entire Trash gets rid the file that can't be deleted by Hazel.