Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Still can't delete it' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Still can't delete it
Authored by: Anonymous on Jun 12, '01 08:12:15PM

I have a folder in my trash can that always says that it's in use, and so it can't be deleted. I can't move it (get the "File is in use" error), can't delete it, or do anything with it. I can duplicate it, and the duplicates behave normally and can be deleted. I can even rename the folder with no problems. But I am unable to delete it, and a search of my hard drive cannot find it. It is not located in any of my .trash or trash folders, even when I do an ls -a or -lo from the terminal. This is really frustrating, and incredibly odd, as it doesn't seem to exist anywhere on my harddrives. When I log into other accounts, including root, the folder doesn't seem to exist anywhere. But when I log into my admin account, the trash at first appears empty, but when clicked upon, it becomes full, and the folder is present. I am at a complete loss and have tried everything to get rid of it. Please help me!

[ Reply to This | # ]
Re: Still can't delete it
Authored by: Anonymous on Jun 13, '01 07:35:14PM

1) Launch terminal, and su to root.
2) Type "rm" followed by a space
3) Click on the trashcan to open up the file window
4) Drag any of the "undeletable" files into the terminal window
5) Click once in the terminal window

In your terminal window, you should now see something like:
[localhost:/Users/myname] root# rm '/Users/myname/.Trash/filetobedeleted'

6) Hit RETURN and the file should be deleted.

Note that by dragging the filetobedeleted into the terminal window, the path is revealed. As in UNIX convention, the dot in front of Trash means the file is hidden, unless you do an "ls -a" (for ALL files).

Watch out for flags too. I suggest using "ls -loa" to see every file with all the necessary information. See my earlier post concerning the uchg flag.

Good luck.

[ Reply to This | # ]
Still can't delete it
Authored by: alcepom on Jan 15, '07 07:19:18AM

I have the same problem. Did you foud the solution? Could you share it with me?

[ Reply to This | # ]