Sunday, April 11, 2010

Removing trash items as Root

Items placed in the trash as a root user, using:
gksu nautilus


are NOT in the usual trash bin that you can easily empty.

How-to:
1. Go back to gksu nautilus, press CTRL-H to show hidden files and navigate to -
root/.local/share/Trash/files

2. Select the files you want deleted (CTRL-A, or SHIFT+right-click each file)
3. Press SHIFT-DEL on the keyboard.
4. Confirm the deletion by clicking on the OK button.
5. Then repeat steps 2-4 for this location:
root/.local/share/Trash/info

6. Close the Nautilus application, then exit the terminal window.

Code below doesn't work for me; when I tested deleting trash via the terminal window, the items remain in the Trash folders.
sudo rm -rf ~/.local/share/Trash/files
sudo rm -rf ~/.local/share/Trash/info

No comments:

Post a Comment