New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

Problems erasing files


Post Reply New Thread Subscribe

 
Thread Tools
charales

 
Member Since: Sep 09, 2010
Posts: 13
charales is on a distinguished road

charales is offline
Hi every one,

I'm having problems eliminating files from my waste basket. Some files are "protected" and other cannot be read or written and it reports an error -36.
It try to erase these files directly from the waste basket but the process stops after a couple of seconds.
I have tried to use the terminal and I managed to erase single files, but when it comes to directories, the system says it's a directory and won't erase it.

Is there any other way to eliminate these files?

Thanks for your help.
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,757
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
What Terminal command did you use? You likely didn't tell it to delete recursively. The command you want is as follows:
Code:
rm -rf ~/.Trash/*
The -r argument will remove files recursively (delete a file within a folder, within a folder...) and the -f argument will remove the files without prompting (handy if you have a lot of files to delete and you don't need to ensure that only certain ones get deleted).

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
charales

 
Member Since: Sep 09, 2010
Posts: 13
charales is on a distinguished road

charales is offline
Quote:
Originally Posted by vansmith View Post
What Terminal command did you use? You likely didn't tell it to delete recursively. The command you want is as follows:
Code:
rm -rf ~/.Trash/*
The -r argument will remove files recursively (delete a file within a folder, within a folder...) and the -f argument will remove the files without prompting (handy if you have a lot of files to delete and you don't need to ensure that only certain ones get deleted).
Hi, and thank you for your answer.

I tried what you told me but it did nothing at all. I use OS X 10.6.6 in Spanish (I live in Spain), could that have suppose a Trash directory name change that would affect the command line you told me?

Also, I tried to type "rm -rf" and drag these files and directories one by one, but some files have 0 KB weight and no modification date. Others simply do not disappear because of a "Permission denied" error. Error that I do not understand because I changed these directories and file's properties so that all users could modify/delete them.

Could it be possible to erase them with another method, maybe deleting the Trash directory and creating a new one?

Thanks
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,757
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
You can add sudo in front of that rm command:
Code:
sudo rm -rf ~/.Trash/*
That will give you root privileges which will allow you to delete any file. When sudo asks for your password, enter your own password.

As for the name of the Trash, I have no idea if it is named differently. You'll have to tell me that .

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
charales

 
Member Since: Sep 09, 2010
Posts: 13
charales is on a distinguished road

charales is offline
I solved the problem connecting the drives to my XP pc and deleting al Mac OS X files. Connected them back to my Mac and all is fine.

Thank you anyway for your help
QUOTE Thanks

Post Reply New Thread Subscribe


« OSX does not load (Snow Leopard) | Can't log on to my Yahoo account. »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting 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 Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Problems with QuickTime .mov files and Final Cut Express astyve Movies and Video 4 08-28-2010 11:26 AM
problems importing files from appleworks atoli_84 OS X - Apps and Games 1 11-24-2007 08:24 AM
Problems loading swf files... MrChris Running Windows (or anything else) on your Mac 0 05-01-2006 05:53 AM

All times are GMT -4. The time now is 06:35 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?