How to empty debug.log when file size is above xyMB?

Create a cron job for a function which checks the file size and runs unlink( WP_CONTENT_DIR . '/debug.log' ) if necessary.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)