How Can You Delete System Log Files and Make Your PC Clean?

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.

 

Solutions

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.

  1. 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.
    image00
  2. Locate This PC / Computer on the Navigation pane on the left-hand side of the screen and click it.
    image02
  3. 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.

    Open the context menu of the System Drive
    Open the context menu of the System Drive
  4. Now switch to the General tab.
    image04
  5. Move the cursor a bit down and locate Disk Cleanup. Click it to launch it.

    Select Disk Cleanup
    Select Disk Cleanup
  6. 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.
    image06
  7. Select all the returned Log files showing in the Files to delete panel.
    image05
  8. 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.

  1. Right-click the start button and select Event Viewer from the list.

    Selecting Event Viewer from the context menu
    Selecting Event Viewer from the context menu
  2. Go through each group and clear the log files by right-clicking the group and then selecting the Clear Log option.

    Selecting the Clear Log option
    Selecting the Clear Log option
  3. 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.

    Selecting Properties from the context menu
    Selecting Properties from the context menu
  4. 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.

    Entering the desired size
    Entering the desired size
  5. Click on Apply so the changes are applied.

    Applying the changes
    Applying the changes

Raza Ali Kazmi

Raza Ali is content editor and publisher at Sorcim Technologies.