find /opt/tomcat/logs/ -type f -mtime +10 -delete 




10 is the no of days older than to delete