Friday, May 3, 2024
452
rated 0 times [  452] [ 0]  / answers: 1 / hits: 689115  / 2 Years ago, sun, august 28, 2022, 1:14:59

I am not able to find trash anywhere. Can you please tell me a command or anything like that to empty the trash using terminal ?


More From » command-line

 Answers
2

You can use the rm command:



rm -rf ~/.local/share/Trash/*


The rm command removes (deletes) files or directories.



-f, --force     Ignore nonexistant files, and never prompt before removing.
-r, -R, --recursive Remove directories and their contents recursively.


The trash folder is found at: $HOME/.local/share/Trash



Be careful how you use the rm command - the files aren't sent to a trash can where you can undelete them, so it's not easy to undo.


[#25145] Tuesday, August 30, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
gliroopy

Total Points: 290
Total Questions: 115
Total Answers: 114

Location: Egypt
Member since Tue, May 3, 2022
2 Years ago
;