8

I'm using Ubuntu 16.04 and deleted a file as root to trash. Then I couldn't delete it because root nautilus won't view trash, and I installed bleachbit and used it as root but it won't clean it either.

  • 2
    Generally you don't want to open a file explorer as root. You can do this from a terminal `sudo rm -rf /home/$username/.local/share/Trash/` – kalenpw Dec 05 '16 at 02:11

1 Answers1

12

To delete a file as root you need to open nautilus as root by typing in terminal

sudo -H nautilus

Then inside nautilus use the shortcut CtrlH to show the hidden files. After that navigate to /home/username/.local/share/Trash/files.

And delete the files easily.

heemayl
  • 90,425
  • 20
  • 200
  • 267
Muaad ElSharif
  • 443
  • 8
  • 23