Even though this will be an article short on words, it can be very valuable to help keep your Mac clean. Over time, log files can occupy a large amount of space on your hard drive and cleaning them up from time-to-time can help free up extra space you can use for other files.
In older versions of OS X, before Yosemite, there were set times that maintenance would automatically run to clean up your log files, but in OS X Yosemite, El Capitan and macOS Sierra, the maintenance program will run when your Mac is turned on for a long period of time, not in use and not in sleep mode. For example, if you leave it on overnight, it should run automatically to clean up these log files.
However, there is an easy way to manually delete these files. If you have recently reinstalled your operating system and performed a clean install, there may not be many log files saved. If though, your Mac has gone through several operating system upgrades, you may have a significant amount of space taken up by these log files.
To manually clean these files, and it is safe to do so, open Finder and go to Applications. Next, select Utilities and then you will open Terminal.
Once you have Terminal open, at the prompt, type in: “sudo periodic daily weekly monthly” with the spaces and without the quotation marks, and then hit enter. Next, to finish the process, enter your password and hit enter again. When you see your prompt with the name of your Mac appear, it is complete.
Perform this procedure periodically to help minimize the space occupied by these log files.
For 15 years, Scott Lindsay has helped tens of thousands of people better their skills, publishing more than 400 articles about Apple and Microsoft software, the computer and the Internet. You can reach Scott for comments or questions at ScottLindsay@live.com.