Delete files owned by a specific user on Linux

Delete all txt files:

find ~/testFolder/*.txt -user @USERNAME -exec rm {} \;

Note, the semicolon is necessary.

Delte all files and directories:

find ~/testFolder/ -user @USERNAME -exec rm -rf {} \;

But be careful using “-rf”.