find directory -maxdepth 1 -size -10M -type f -print
To actually delete them:
Code:
find directory -maxdepth 1 -size -10M -type f -delete
Replace "directory" with the directory name in both cases. That command will only delete the files in that directory. Take out the "-maxdepth 1" if you want it to recurse down all directories in that tree.
Well use some other script capable method like a bash script in combination with a cron job to do the automatic deletions by calling your script at per-determined times.