The Windows Event Viewer is an incredibly powerful diagnostic tool built into Windows 11. It quietly runs in the background, recording detailed logs of almost everything that happens on your computer, from minor application warnings to critical system errors and security audits. While these logs are essential for troubleshooting computer problems, they can accumulate over months and years, taking up storage space and making it difficult to find relevant, recent errors. If your system is currently running smoothly, you may want to clear these old logs to give yourself a clean slate for future troubleshooting.
How to Clear Logs via the Event Viewer Interface
The safest and most straightforward way to clear logs is directly through the Event Viewer graphical interface.
- Right-click the Start button on your taskbar and select Event Viewer from the power user menu. (Alternatively, press the
Windows Key + R, typeeventvwr.msc, and hit Enter). - In the left-hand navigation pane, expand the Windows Logs folder by clicking the small arrow next to it. This folder contains the most common log categories: Application, Security, Setup, System, and Forwarded Events.
- Click on the specific log category you want to clear (for example, click on System).
- The middle pane will populate with a list of thousands of recorded events.
- Look at the far right pane, labelled Actions.
- Under the specific log name section (e.g., “System”), click the option that says Clear Log….
- A warning prompt will appear. You have two options:
- Save and Clear: This allows you to archive the current logs to a file before deleting them, just in case you need to reference them later.
- Clear: This immediately and permanently deletes the logs without saving a backup.
- Click Clear if you are sure you no longer need the historical data. The middle pane will instantly empty.
You can repeat this process for the Application and Security logs as needed.
How to Clear All Logs Instantly Using Command Prompt
If you are an IT administrator or simply want to wipe every single log file on the computer simultaneously without clicking through multiple menus, you can use a powerful command-line command.
- Click the Start button, type
cmd, right-click on Command Prompt, and select Run as administrator. - You must have administrative privileges for this command to work.
- Carefully copy and paste the following command into the terminal:
for /F "tokens=*" %1 in ('wevtutil.exe el') DO wevtutil.exe cl "%1" - Press Enter.
You will see a rapid scrolling list in the terminal as the command automatically iterates through every single log category registered on your system and executes the clear command (cl). Once it finishes and returns to the standard prompt, your Event Viewer will be completely empty, starting fresh from that exact moment.