How to delete all error_log +1M

find /home/*/public_html -type f -iname error_log -size +1M -delete

or

find /home/*/public_html -type f -iname error_log -size +1M -exec rm -rf {} \;

Cronjob to delete all error_log +1M at 02:00

0 2 * * * find /home/*/public_html -type f -iname error_log -size +1M -exec rm -rf {} \; > /dev/null 2>&1

Find all error_log +50M with size

find /home/*/public_html/ -type f -iname error_log -size +50M -exec du -sh {} \;