Delete log files older than 30 days

find /var/log/myapp -name '*.log' -type f -mtime +30 -delete