Files in root trash that will not delete

Asked by Riverrun

gksudo nautilus '/root/.Trash/'

This command won't even reveal the Root/.Trash folder.

Entered Root as Administrator using gksudo nautilus and made the hidden files visible. I navigated to .local/share/Trash. The files and info folders are bulging with rubbish, but I am unable to delete them. Tried fiddling about with permission and even manually moving them to the Ordinary Trash folder on my desktop, all to no avail. I can't get rid of them.

Tried: sudo -i
cd .Trash

No such file or directory

Can anyone think of a way of deleting this root trash?

It's an odd one, you would think that navigating to the .Trash folder as admin would be all that's necessary but there is no delete option in the right click context menu.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Riverrun
Solved:
Last query:
Last reply:
Revision history for this message
Riverrun (buttimersean) said :
#1

Tried this to no avail:

sudo rm/root/.local/share/Trash

Revision history for this message
Andre Mangan (kyphi) said :
#2

Assuming that you are using Hardy Heron, your Trash folder is in your Home directory:

cd ~/.local/share/Trash/files

Watch the spaces and capitals.

Revision history for this message
Riverrun (buttimersean) said :
#3

Thanks for the answer, Andre, adding the Delrte option to the right click menu solved my problem.

Revision history for this message
Tau (timoteo) said :
#4

   "Tried this to no avail:
   sudo rm/root/.local/share/Trash"

Note: That should be

   sudo rm /root/.local/share/Trash (with a space)

But that would delete the actual trash folder as well, if it worked. This would work better:

   sudo rm -rv /root/.local/share/Trash/files/*

The asterisk makes it delete all files that could match the rest of the file name. The "r" option makes it remove directories and their contents recursively. And the "v" option makes it tell you what it did.

You can also use
   gksudo nautilus /root/.local/share/Trash/files/
and select what you want to delete, then press Shift + Delete. (Or you can do it without a terminal: Press ALT + F2, then type/paste the gksudo command above.)

But seems like you solved the problem anyway. :)