Reset / Clear The Event Viewer Log Files In Windows

Nick Bostrom
Nick Bostrom Last Updated: May 18, 2022


Software: Windows 7, 8 & 10 | Last modified on 2018-06-18


Use the Command Prompt or PowerShell to clear the Event Viewer Log Files in Windows.

[Solution 1] Clear the log files within the Event Viewer

  1. Open Run and execute eventvwr.msc
  2. Right-click the log or category you wish to clear and select Clear Log...

[Solution 2] Clear the log files with commands


Command Prompt

  1. Close the Event Viewer.
  2. Open the Command Prompt (Admin).
  3. Execute for /F "tokens=*" %1 in ('wevtutil.exe el') DO wevtutil.exe cl "%1"

PowerShell

  1. Close the Event Viewer.
  2. Open PowerShell (Admin).
  3. Execute wevtutil el | Foreach-Object {wevtutil cl "$_"}

Nick Bostrom
Written by

Nick Bostrom

Nick Bostrom is Professor at Oxford University, where he is the founding Director of the Future of Humanity Institute. He also directs the Strategic Artificial Intelligence Research Center. He is the author of some 200 publications, including Anthropic Bias (Routledge, 2002), Global Catastrophic Risks (ed., OUP, 2008), Human Enhancement (ed., OUP, 2009), and Superintelligence: Paths, Dangers, Strategies (OUP, 2014), a New York Times bestseller.


0 ratings

Related articles