Find the answer to your Linux question:
Results 1 to 8 of 8
Hi All, I'm having a really really strange problem. I have a folder in my trash that I can't empty normally, when I try to empty it says: Error deleting ...
  1. #1
    Linux Guru jmadero's Avatar
    Join Date
    Jul 2007
    Location
    California
    Posts
    1,958

    [SOLVED] emptying trash

    Hi All,

    I'm having a really really strange problem. I have a folder in my trash that I can't empty normally, when I try to empty it says:

    Error deleting permission denied

    So I assumed that sudo would take care of this. This command resulted in nothing:

    sudo rm -rf .Trash/*

    I then decided to go search for the folder in /home/username/.local/share/Trash/files

    The folder isn't in there at all....

    At this point I'm getting pretty irritated trying to empty the trash. Any advice? Thanks!


    P.S. I'm running Hardy

  2. #2
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    Wll the folder you're looking for is /home/username/.Trash rather than the path you've posted. Trash has moved a little bit over the past 2-3 years while the FreeDesktop standards were coming into effect. The command you ran above is to remove the contents of /home/username/.Trash

  3. #3
    Linux Guru jmadero's Avatar
    Join Date
    Jul 2007
    Location
    California
    Posts
    1,958
    I also tried:

    sudo rm -rf /home/username/.local/share/Trash/*

    with no luck

    also,

    I don't have a /home/username/.Trash....I had an issue with my trash a few months ago and I found the files in /home/username/.local/share/Trash and deleted from there. I haven't had a .Trash in my home folder in at least the last 6 installs of Ubuntu (Gutsy/Hardy...I reinstall often)

  4. #4
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    You definitely don't have /home/username/.local/share/Trash/? I'm running Hardy too and that's the location of my trash bin.

    A good way to figure this out is to create a file with a specific name, send it to the trash and then locate it. Create a file called AAAAAA111111 and send it to the trash. When you have that done run
    Code:
    cd ~ && find -name AAAAAA111111 -exec dirname {} \;
    That should tell you where your trash is. The cd at the start is just to make sure you start at the root of your home directory. The output will be relative to there.

  5. #5
    Linux Guru jmadero's Avatar
    Join Date
    Jul 2007
    Location
    California
    Posts
    1,958
    I DEFINITELY do have a /home/username/.local/share/Trash....I am looking in it right now. Inside of it has two folders, files and info. Inside the files folder are my files currently in the trash (minus the folder I can't get rid of). I can post a screenshot if you'd like to see the folder....

  6. #6
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    Quote Originally Posted by jmadero View Post
    I DEFINITELY do have a /home/username/.local/share/Trash....I am looking in it right now. Inside of it has two folders, files and info. Inside the files folder are my files currently in the trash (minus the folder I can't get rid of). I can post a screenshot if you'd like to see the folder....
    Sorry I misunderstood you earlier. So you do have that directory; just to recap here then, you don't see your deleted items in there? Or is it just that you don't have permission to delete them?

  7. #7
    Linux Guru jmadero's Avatar
    Join Date
    Jul 2007
    Location
    California
    Posts
    1,958
    that's the weird thing, when I double click the actual trash icon on my desktop it shows me all the files including the ones that I can't delete. When I click on "empty trash" within that it gives me the error about the one folder.

    When I go to .local/share...Trash/files I see the same files minus the folder that I can't delete.

  8. #8
    Linux Guru jmadero's Avatar
    Join Date
    Jul 2007
    Location
    California
    Posts
    1,958
    solved:

    the problem:

    the files that I was trying to delete were on my external with permission problems. I found them in .1000Trash on my external, went into nautilus as sudo, removed them from there.

    I wish Ubuntu had a bit more consistent way about taking care of trash....oh well...all well that ends well

Posting Permissions

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