0

I have a problem with a seemingly unremovable directory/bundle. I moved Spotify.app from /Applications to the Trash and later tried to empty the Trash.

The empty trash progress bar shows up but then nothing happens anymore. No error message, no progress.

Then i tried to remove the directory with the following commands

rm -rfv ~/.Trash/*
sudo rm -rfv /home/<user_name>/.Trash/*

Both never return, can not be aborted with ^c and provide no output at all. I considered some filesystem corruption, rebooted in recovery mode and ran the disc repair. It found an error and fixed it, but the problem did not go away and i still have the same behavior.

Another potentially related problem is wrong meta information in the Finder. Since some weeks ago i repeatedly find files where the Finder shows no filesize, type, creation date, modification date.

Any ideas how to remove the directory or what might be the problem?

3 Answers 3

2

I was able to remove the directory in single user mode.

Before that i tried to remove the contents of the directory one by one and found that Spotify contained two Growl libraries one of which could not be removed. The library did not even show up with ls -l in single user mode.

0
1

I use sudo rm -Rf (big 'R') when things are stubborn. It's a holdover from my Slackware days but I actually have no idea whether there's a difference on OS X.

However, sometimes restarting Finder using killall Finder can release locks on the Trash, which coincidentally can have the same effect.

1
  • -r and -R are equivalent flags for rm in macOS
    – lodeOfCode
    Dec 16, 2020 at 2:03
0

Maybe some of the files are protected. In that case you won't be able to delete them the normal way. Apple provides a very handy manual for this. Just look for the section "Advanced tip about deleting locked files". I've used this procedure many times!

1
  • Good idea, but i think sudo rm -rfv /home/<user_name>/.Trash/* should have catched that case. I tried it never the less and found that chflags -R nouchg /Users/<user_name>/.Trash/Spotify.appdoes not return as well. And as with rm there are no error messages. May 19, 2012 at 13:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .