For files older than a day, you can do:
find /<path> -mtime +1 -exec rm {} \;
the -mtime indicates files which haven't been modified for the specified number of days. It's always a good idea to replace the exec with a -print before executing this in anger, just o confirm that you'll be doing what you want and not deleting other important files. HTH.