Knowledge Base

Empty all user trash folders

Run the following command to empty the contents of all .trash folders in user home directories.

find /home/*/.trash/* -exec rm -rf {} \;

To list what you'll be deleting prior to executing the command remove  -exec rm -rf {} \:

Also, find /home/*/mail/new/ -type f -exec rm {} \; will remove all catch-all email account data in the \mail\new\ directory.

Please rate this article to help us improve our Knowledge Base.

0 0