logo

How to Force Empty the Trash on Linux 📂Programing

How to Force Empty the Trash on Linux

Issue

On Linux, when attempting to empty the Trash because of insufficient storage capacity, you may be unable to permanently delete items, receiving the message ‘Failed to delete the item from the trash’.

Solution

You can force-delete with the following command. 1

sudo rm -rf ~/.local/share/Trash/files/

trash.png