Is it safe to delete /Private/Var/Log files?

I've got a file named "wifi.log.0" that is 20GB and another "wifi.log" file that is 7GB taking up space on my hard drive.


Are these safe to delete?

MacBook Pro 13", macOS 10.14

Posted on Feb 6, 2020 1:29 AM

Reply
4 replies

Feb 6, 2020 6:27 PM in response to eddy510_83

Is it safe to delete /Private/Var/Log files?


In general, no. However those specific two are ok to delete.


The reason they have grown so large is certain to remain though, which means they will grow large again until the cause is found and corrected.


Non-Apple "cleaning" products are fond of indiscriminately deleting things that shouldn't be deleted, and log files are a popular example. macOS expects many of its components and files to be present. If they're not, the process(es) creating them will burden a Mac's performance in a futile effort to write to files that do not exist, leading to complaints of a slow Mac. Some might consider that a bug in macOS; after all a perfectly written routine should confirm the existence of a file before it attempts to write to it, but Apple can't possibly test every possible circumstance where someone or some thing interferes with what it was designed to do. Something to keep in mind.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Is it safe to delete /Private/Var/Log files?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.