Log files to be deleted based on runs

Hi
I need to delete log files created by my application jobs. Say If I have log files
created by jobs as below

File Name Date/time generated
job1.log.01292010 29-JAN-10
job1.log.01302010 30-JAN-10
job1.log.01312010 31-JAN-10
job1.log.02012010 01-FEB-10
job2.log.01292010 29-JAN-10
job2.log.01302010 30-JAN-10
job2.log.01312010 31-JAN-10
job2.log.02012010 01-FEB-10

So Now I have delete all the log files of jobs keeping two recent log files of each job i.e delete

job1.log.01292010
job1.log.01302010
job2.log.01292010
job2.log.01302010

Can some one please give a script to do this?
Thanks in advance
Ammu

find /LOGPATH -type f -mtime +5 -exec echo rm -f {} \;

echo can be removed, if you really want to clean it.