Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > can't delete file

can't delete file
Thread Tools
Forum Regular
Join Date: Apr 2001
Location: NY, NY, USA
Status: Offline
Reply With Quote
Jun 1, 2006, 08:36 PM
 
Okay, this is a last resort post. I have a file that I cannot delete. The name somehow gained illegal characters which show up as "?". No, it isn't a permissions issue. I cannot delete it with sudo rm -Rf. I cannot rename it. "sudo chflags nouchg" hangs when run on that file. ls -lo also hangs. Fsck -fy did nothing. I am running out of options here... any ideas?
- Sahara
     
Mac Enthusiast
Join Date: Mar 2000
Location: Georgetown, TX USA
Status: Offline
Reply With Quote
Jun 2, 2006, 10:26 AM
 
Sometimes third party apps that are designed to force empty stubborn files works. Here are some, but a VersionTracker search of Trash will reveal others.

Cocktail 3.7.1

DropObliter8 1.0

BatChmod 1.37

Force Empty Trash 1.0

iEmpty 1.2

BTW, when you finally get this pesky issue resolved, please post your solution.
Harv
27" i7 iMac, 10.7.4
Those who can make you believe absurdities can make you commit atrocities. ~Voltaire
     
Grizzled Veteran
Join Date: Mar 2004
Status: Offline
Reply With Quote
Jun 2, 2006, 03:11 PM
 
Originally Posted by sahara
Fsck -fy did nothing.
Meaning what? It found nothing (wrong), or it couldn't fix something?
(Because, the last marathon thread I read about "illegal chars" turned out to be catalog corruption).

Originally Posted by sahara
I have a file that I cannot delete. The name somehow gained illegal characters which show up as "?". No, it isn't a permissions issue. I cannot delete it with sudo rm -Rf. I cannot rename it. "sudo chflags nouchg" hangs when run on that file. ls -lo also hangs.
Tell us more:
What is the (printable part of the) filename?
Where is now? (Where did it come from?)
Can you isolate it? (i.e., move good files elsewhere so it resides in a directory by itself).

I would hope that something like:
ls -1aB

or
ls -1av | od -cb

would reveal the string of chars.
-HI-
     
aux
Junior Member
Join Date: Apr 2005
Status: Offline
Reply With Quote
Jun 3, 2006, 10:57 PM
 
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:04 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2