32

I visited a lot of forums but found no answer. I have 5 files in my trash bin and I can't delete them, at first after I clicked on the empty trash button it would freeze, now when I do that it just says "preparing" and displays an error while trying to delete files.

I tried deleting it via BleachBit but nothing, tried with terminal command sudo rm -Rf ~/.Trash/* it doesn't work either. I found out that one of my folders is immutable, I tried to disable that via terminal it didn't work, I can't even restore it, it freezes again.

I've been using Ubuntu 13.10 for few weeks and I am new to Linux. How can I solve this?

Seth
  • 57,282
  • 43
  • 144
  • 200
Nikobitan
  • 321
  • 1
  • 3
  • 3
  • 2
    Isn't trash in `~/.local/share/Trash` instead of `~./Trash`? (`~` represents the home directory by the way). So `rm -rf ~/.local/share/Trash` may work, but try not to remove anything important. If you are VERY sure you could run it as root, but then you would need to run `sudo rm -rf /home/USERNAME/.local/share/Trash` instead. Be careful with the -f option. – Wilf Nov 03 '13 at 14:48
  • 1
    @Lucio A new Q should get closed by Old Q as duplicate. – Raja G May 19 '14 at 14:42
  • 2
    @raaz that is a stupid rule – Lucio May 19 '14 at 16:18
  • 4
    @raaz there's no rule that states so. The question with better quality answers should be the master. – Braiam May 19 '14 at 18:19
  • @Braiam Look at the answers, they are same. you dont even look. bravo – Raja G May 20 '14 at 05:58

1 Answers1

74

Open your terminal and type the following command to clear the trash

 sudo rm -rf ~/.local/share/Trash/*
Raja G
  • 100,643
  • 105
  • 254
  • 328