i was wondering how to auto-delete old files in a certain folder but i want it to exclude its subfolders. I know how to automate the process and i know how to delete old files including subfolders:
find /path/to/files -mtime +30 -exec rm {} \;
To automate i just let it open at startup once.