Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to empty trash from shell in Ubuntu

📅 2013-Jun-30 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ trash-cli ⬩ 📚 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 and Ubuntu 12.04 LTS

© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘📧