Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to empty trash from shell in Ubuntu

📅 2013-Jun-30 ⬩ ✍️ Ashwin Nanjappa ⬩ 📚 Archive

The tools in trash-cli can be used to manage the trash can in Ubuntu. It can be installed easily by using the package name trash-cli.

To empty the trash can from the shell, just call trash-empty.

I find that sometimes the Empty Trash command in the GUI does not empty! At such times, this shell command has always worked.

Tried with: trash-cli 0.12.10.3 and Ubuntu 12.04 LTS