find mtime exec rm -f code example Example: find mtime exec rm find /path/to/files* -mtime +5 -exec rm {} \;