Clear error_log

Is there a way to clean out the error_log? Mine is up to 16MB.

Can I just delete it and a new one will be created or do I just clean out the file?

Thanks for any help.


Assume you are talking about the PHP error_log file. Your hosting service should be managing this for you. If it gets too big, they can decrease the archive period so it’s archived more frequently.

16MB is not all that big… The real question is how many days does that span.

Check with your hosting provider.