Just like any other operating system, Windows makes use of log files to record all kinds of activities, errors, warnings that pop up over a period of time.
These log files prove very helpful in analyzing as well as diagnosing certain types of errors that might have cropped up during the course of carrying out certain operations. However, these log files quickly turn into a mammoth pile up over time, and eat up a huge portion of the hard drive over time. This tutorial shows how to remove system log files to wrest back wasted disk space to the user.
Solution 1: Use The Native Disk Cleaner
Windows is shipped with an inbuilt disk cleanup utility known as Disk Cleaner which is used to remove not only log files but also a huge array of other unwanted files from the hard drive partitions in order to recover the wasted space. This utility is quite efficient than all the other methods available due to it’s safety record. It swiftly carries out the whole exercise without ever putting the normal functioning of the system under jeopardy.
- On the taskbar, locate the yellow colored File Explorer icon (Windows 10) / Windows Explorer (all previous versions of Windows). Now click on it with the left mouse button.
- Locate This PC / Computer on the Navigation pane on the left-hand side of the screen and click it.
- It will list out all the currently available partitions in the hard drive. Locate the partition on which Windows is installed (denoted by the Windows logo, see screenshot below), right-click it and select Properties.
- Now switch to the General tab.
- Move the cursor a bit down and locate Disk Cleanup. Click it to launch it.
- Scroll down once again in the window that just opened and locate the Clean up system files button. Click it to make the utility scan the system files, and include them in the cleanup queue.
- Select all the returned Log files showing in the Files to delete panel.
- Click OK to initiate the cleanup process. This might take a while depending on the number of log files in the system.
Solution 2: Remove Log Files within the Event Viewer
Event Viewer provides the user with the ability to remove log files based on where they belong to, and restrict the space of the groups where log files are stored. Log files are grouped into 5 major groups, and each group holds log files stored by operations as indicated by that respective group’s title. As an example, the group named Application holds the log files related to applications executed in the Windows operating system.
- Right-click the start button and select Event Viewer from the list.
- Go through each group and clear the log files by right-clicking the group and then selecting the Clear Log option.
- Additionally, you can restrict the group size in order to set a limit for the space taken by each group. To do so, right-click the desired group in Event Viewer and select Properties.
- Enter the desired value (in KBs) in the Maximum log size textbox to set the maximum space threshold for that particular group. Please note that 1 MB = 1024 KB.
- Click on Apply so the changes are applied.