Results 1 to 5 of 5
  1. #1
    Problems erasing files

    Member Since
    Sep 09, 2010
    Posts
    15
    Problems erasing files
    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.

  2. #2
    Problems erasing files
    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,395
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    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

  3. #3
    Problems erasing files

    Member Since
    Sep 09, 2010
    Posts
    15
    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

  4. #4
    Problems erasing files
    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,395
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    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

  5. #5
    Problems erasing files

    Member Since
    Sep 09, 2010
    Posts
    15
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. External Harddrive possible erasing files off internal drive.
    By l0uismustdie in forum OS X - Operating System
    Replies: 8
    Last Post: 06-17-2010, 07:00 AM
  2. un-erasing
    By doughboy in forum Running Windows (or anything else) on your Mac
    Replies: 7
    Last Post: 06-08-2007, 07:04 PM
  3. Erasing EVERYthing
    By boarderjosh10 in forum OS X - Operating System
    Replies: 2
    Last Post: 05-07-2007, 05:49 PM
  4. about erasing cd rw's....
    By b16crx69 in forum OS X - Operating System
    Replies: 0
    Last Post: 05-28-2005, 05:32 PM
  5. erasing a HD
    By officehelper in forum Apple Desktops
    Replies: 1
    Last Post: 01-06-2005, 04:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •