Saturday, December 18, 2010

Find And Delete All Files Owned By A User In The Current Directory

find . -user $username -delete
Some older versions of find don't support -delete so instead use:
find . -user $username -exec rm -rf {} \;