How to Clear All Event Logs in Windows 10

Often when you want to troubleshoot issues or keep a general check on your system health in Windows 10, you have to use Event Viewer. Event Viewer shows all the Windows events that get logged such as Information, Errors, Warnings and so on. Besides errors, Windows logs completely normal activities. This makes it harder to spot events related to things that aren't working as expected. So from time to time you may need to clear the Event Log in Windows 10.


windows-10-event-log-app The System Log and the Application Log are two of the important logs that you may want to clear occasionally. There are several ways to do it.

Clear All Event Logs in Windows 10 manually

You can manually clear any Event Log by right clicking it and choosing "Clear log..." from the right click menu.

  1. Right click the Start button or press Win + X to open the Win+X menu (Power User Menu) in Windows 10.
  2. Choose the item Computer Management from the context menu. Windows 10 open computer management
  3. Go to Computer Management - System Tools - Event Viewer - Windows Logs: windows-logs
  4. Right click the log you would like to clear and select the command Clear Log... from the context menu: clear-log-context-menu-command

You are done.

Clear All Event Logs in Windows 10 using Command Prompt

You can quickly clear all event logs using a special command. Do it as follows.

  1. Open an elevated command prompt.
  2. Type or paste the following command:
    for /F "tokens=*" %1 in ('wevtutil.exe el') DO wevtutil.exe cl "%1"

This will produce the following output:

windows-10-clear-logs-from-cmd All Windows logs will be cleared. Instead, you might want to clear individual logs. Do it as follows.

 

    1. Open an elevated command prompt.
    2. Type or paste the following command:
      wevtutil el|more

It will produce the list of available logs.
cmd-list-of-logs
Note the name of the log you need to clear.

  • To clear a specific log, type the following command:
    wevtutil.exe cl log_name_here

    Replace the log_name_here portion with the name of the log you need to clear. For example, this will clear the "Application" log:

    wevtutil.exe cl Application

    windows-10-clear-application-log-from-cmd

 

How to clear all Event Logs using PowerShell

  1. Open PowerShell as administrator (see how).
  2. Type or copy-paste the following command into PowerShell:
    wevtutil el | Foreach-Object {wevtutil cl "$_"}

    windows-10-clear-logs-from-ps

  3. Press Enter. Wait for few seconds for all logs to be cleared. You can now exit PowerShell by typing Exit.

That's it.

4 thoughts on “How to Clear All Event Logs in Windows 10

  1. haxzion

    Very useful info thanks :)

    Reply
    1. Sergey Tkachenko Post author

      You are welcome.

      Reply
  2. JentRy

    Sergey,
    The article and the clearing event logs tricks are realy very useful!

    Tell us please how to create PowerShell script file (*.ps1) using your command: wevtutil el | Foreach-Object {wevtutil cl “$_”}?

    Reply
    1. Sergey Tkachenko Post author

      Save it as a ps1 file?

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.