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
- Open Run and execute eventvwr.msc
- Right-click the log or category you wish to clear and select Clear Log...
[Solution 2] Clear the log files with commands
Command Prompt
- Close the Event Viewer.
- Open the Command Prompt (Admin).
- Execute for /F "tokens=*" %1 in ('wevtutil.exe el') DO wevtutil.exe cl "%1"
PowerShell
- Close the Event Viewer.
- Open PowerShell (Admin).
- Execute wevtutil el | Foreach-Object {wevtutil cl "$_"}