Removing apps from Trash Failing

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

Moderator: Mr_Noodle

Removing apps from Trash Failing Wed Jun 06, 2012 1:50 pm • by alex
Hi,

I've set Hazel to clean up files sitting in the Trash for more than 3 days. Anyways I've noticed that it fails to complete this action when the file is an application previously installed from MacAppStore.

The relevant part of the log:

Code: Select all
2012-06-06 20:46:33.243 hazelworker[8821] File <APPNAME>.app has been sitting in the trash for too long. Purging.
2012-06-06 20:46:33.243 hazelworker[8821] Removing <APPNAME>.app.
2012-06-06 20:46:33.250 hazelworker[8821] Could not remove <APPNAME>.app: Error Domain=NSCocoaErrorDomain Code=513 "“<APPNAME>.app” couldn’t be removed because you don’t have permission to access it." UserInfo=0x10253a5d0 {NSFilePath=/Users/alex/.Trash/<APPNAME>.app, NSUserStringVariant=(
    Remove
), NSUnderlyingError=0x10253a4f0 "The operation couldn’t be completed. Permission denied"}
2012-06-06 20:46:33.250 hazelworker[8821] [Error] Could not remove file: File <APPNAME>.app could not be removed from the Trash.


I'm logged in with the user the app belonged to (and where the .Trash folder resides), so I'm not really sure why this is a permission issue. Any ideas?
alex
 
Posts: 10
Joined: Mon Sep 12, 2011 3:49 pm

Re: Removing apps from Trash Failing Wed Jun 06, 2012 2:25 pm • by a_freyer
Can you manually remove these items ?
a_freyer
 
Posts: 631
Joined: Tue Sep 30, 2008 9:21 am
Location: Colorado

Re: Removing apps from Trash Failing Thu Jun 07, 2012 5:40 am • by alex
Yes, these items are manually removable :-) (they are not apps for which Empty Trash results in one of those locked messages).
alex
 
Posts: 10
Joined: Mon Sep 12, 2011 3:49 pm

Re: Removing apps from Trash Failing Thu Jun 07, 2012 5:46 pm • by Mr_Noodle
If the item is still there, see if you have read permissions on it. Also check the permissions on .Trash itself. It's usually invisible but in Finder if you do "Go to folder" and enter ~/.Trash it should show up. See that you have full permissions (including execute) on this folder.
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Removing apps from Trash Failing Fri Jun 08, 2012 9:57 am • by alex
On ~/.Trash I do have the right permissions:

1. Finder info shows the Read & Write privilege for my account.
2. drwx------ 26 alex staff 884 Jun 8 16:44 .Trash/

Unfortunately I don't have any apps right now in the Trash as I've tested if manually triggering Empty Trash encounters any errors (it didn't)
alex
 
Posts: 10
Joined: Mon Sep 12, 2011 3:49 pm


Return to Support