How to Clear All Event Logs in Event Viewer in Windows

Many don’t realize it, but Windows 10 keeps a record of basically every noteworthy event you perform. The resultant Windows log files are extremely useful when troubleshooting, but take up space and can make people feel uneasy. As a result, many of you will be wondering where what is stores and how to clear the windows event log.

What does the event log store?

The event log is accessible via Windows Event Viewer and was first introduced all the way back in 1993. Administrators can use it to view actions in five categories: application, security, setup, system, and forwarded events.

As an example, it will show any recently installed updates and error codes if they weren’t performed successfully. Admins can also see the applications that have been installed, Office alerts such as “Want to save your changes to x.docx?”.

Despite this, the windows event log doesn’t tend to store much personal information. It won’t, for example, show text from webpages or documents, record mouse clicks, or takes screenshots of your PC. Further, the sheer number of logs would likely make it difficult for an admin to notice something they aren’t specifically looking for. However, if event logs get into the wrong hands, they could be used to analyze user behavior, which could further be used to craft an attack.

Even so, the main reason you may want to delete or clear log files is for maintenance reasons. Not only will doing so clear up hard drive space, but it could also let windows save entires faster in the future. As a result, if you notice that an event log is cleared, it may not be a user trying to hide something.

Whatever your reasons, we’re going to show you how to clear a Windows log file with both the Event Viewer program and an Event Viewer command in PowerShell.

How to Clear a Windows log file with the Event Viewer App

In Windows 10, you can delete event logs in a user-friendly way via the Event Viewer app, but this is best for single events.

  1. Open Event Viewer


    Press the Windows key and type “Event Viewer”. Click the first result under ‘Best match’.

    Windows 10 - Search - Event Viewer

  2. Click the Windows log file and then “Clear Log…”


    You can clear multiple logs at once by selecting them with Shift + click.

    Windows 10 - Event Viewer - Clear Windows Logs

  3. Click “Save and Clear” or “Clear”


    Windows 10 - Search - Event Viewer - Clear Logs confirmation

  4. Clear an Application and Services log


    As well as event viewer, logs from applications and services are stored. You can find them under the “Application and Services Logs” heading. Click the one you wish delete and press “Clear Log…”.

    Windows 10 - Event Viewer - Clear Application and Services Logs

How to Clear All Windows Event Logs at Once with a PowerShell Command

The easiest way to delete all windows log files at once is with PowerShell.

  1. Open PowerShell


    Press “Windows + X” and click “Windows PowerShell (Admin)”.

    Windows 10 - Open PowerShell as Admin

  2. Enter the Windows Event Log command


    In the PowerShell window, type Get-EventLog -LogName * | ForEach {Clear-EventLog $_.log} This will delete the event log of Windows 10 completely.

    Windows 10 - PowerShell (admin) - clear all Eventviewer logs