Force Removal of Trash

February 24, 2010 at 11:28 pm (commands, linux, sudo, terminal, trash)

Alright, I’ve got a quick tip. I recently (as in like 10 minutes ago) ran into a few files that had characters in another language that wouldn’t delete from the trash bin. I tried to run dolphin in root access but it still wouldn’t go. I found this command that forced a deletion of trash regardless of filename:

$ sudo rm -fr /home/USERNAME/.local/share/Trash/files/

Simply change the USERNAME to your own and it should force a deletion of all the files from the trash. Then simply try to “empty” the trash and they should disappear from the trash bin entirely. I believe that’s the newest command for where the trash bin is located, otherwise you could try:

$ sudo rm -fr /home/USERNAME/.Trash

Again, I believe that’s an outdated command, but just in case the first command didn’t work, you could always try that depending on if the operating system you’re using. It’s just a general Linux command.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: