my debug.log file in wp-content size in above 4GB and have trouble with that. can I delete this file from the server? if delete debug.log file ، No problem with my site? Does everything correctly run in the server?

1 Answer 1


debug.log is exactly what it sounds - it’s just a file that contains log information for debugging purposes.

You can easily delete it and without any fear.


  1. Debugging should not be turned on on production site - it’s a security problem.

  2. If your debug.log file is so big, then your site has many problems. This file contains PHP notices, warnings and errors. If everything works fine, then this file is almost empty.

So the smart thing to do is:

  • download that file to your local machine,
  • delete it from server
  • check the content of that file and try to fix as much problems as you can
  • disable logging or at least make that file inaccessible.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.