Sometimes you can’t empty files from the trash. Normally in Ubuntu, you can remove all trash files by right click on the trash can and select empty trash. If you delete any root files as a root user, then you cannot empty trash using this method. In this case, you can use the below method to empty trash.
Fix & Solve Cannot Empty Trash in Ubuntu
Open the terminal command-line application (ctrl+alt+t) and run below command:
sudo nautilus /home/your_username/.local/share/Trash
Note: Here replace “your_username” with your read Ubuntu username. example: my Ubuntu username is “manikandan” so i am using below command.
sudo nautilus /home/manikandan/.local/share/Trash
The above command will open the file manager in root mode.
Now select the files you want to remove and press the Delete button on your keyword. It will delete the files from the trash.
That’s it. In this way you can remove root files from the trash.