fb
Homepage 5 How-to Articles 5 How to Clear Event Viewer Logs on Windows System

How to Clear Event Viewer Logs on Windows System

Manage remote endpoints, deploy software and patches with Action1 cloud RMM solution.

Sign up and use free on up to 50 endpoints with no functionality limits or expiration.



April 26, 2019

This tutorial will show you how to quickly clear all event logs in Event Viewer as needed in Windows 10.

Event Viewer is a tool that displays detailed information as event logs about significant Windows events on your PC.

Event logs are special files that record significant events on your PC, such as when a user signs in to the PC or when a app encounters an error. Whenever these types of events occur, Windows records the event in an event log that you can read by using Event Viewer.

Advanced users might find the details in event logs helpful when troubleshooting problems with Windows and other apps. However, you may also wish to be able to quickly clear all event logs at once as needed.

You must be signed in as an administrator to be able clear all event logs.

This will not clear Analytic or Debug Windows logs. If you have them enabled, the wevutl command returns an error, but all other logs will be cleared.

1. Clear All Event Viewer Logs in Command Prompt

  • Open an elevated command prompt:
  • Right-click on the “Start” button or use the key combination WIN + X → select “Command Prompt (Administrator)”.
Open command prompt as administrator
  • Copy and paste the command below into the elevated command prompt, and press Enter.for /F "tokens=*" %1 in ('wevtutil.exe el') DO wevtutil.exe cl "%1"
Solution 1 to Clear Event Viewer Logs is Using cmd
  • The event logs will now be cleared. You can typing exit to close the command prompt when it’s finished.

2. Clear All Event Viewer Logs in PowerShell

  • Open an elevated Windows PowerShell.
  • Open the Start menu → “All Programs” → search for the “Windows PowerShell” directory and select the file of the required width. On 32 bit systems there will be only a 32 bit executable file. Right-click on the file, select “Advanced” and click “Run as administrator”.
Solution 2 to Clear Event Viewer Logs is using PowerShell
  • Copy and paste the command below you want to use into the elevated PowerShell, and press Enter.Get-EventLog -LogName * | ForEach { Clear-EventLog $_.Log }
Solution 2 to Clear Event Viewer to use Clear-EventLog command

OR wevtutil el | Foreach-Object {wevtutil cl "$_"}

  • The event logs will now be cleared. You can close PowerShell when it’s finished.

3. Clear Individual Event Viewer Logs in Event Viewer

  • Press the Win + R keys to open the Run dialog, type eventvwr.msc, and click/tap on OK.
  • Select a log (ex: log Application) that you want to clear in the left pane of Event Viewer, and click/tap on Clear Log in the far right Actions pane. (see screenshot below) OR
  • Right click or press and hold on a log (ex: Application) that you want to clear in the left pane of Event Viewer, and click/tap on Clear Log. (see screenshot below)
Clear Individual Event Viewer Logs

Consider Using Action1 to Clear Event Log if:

  • You need to perform an action on multiple computers simultaneously.
  • You have remote employees with computers not connected to your corporate network.

Action1 is a cloud-based platform for remote IT management encompassing tools such as automated patch management, remote software deployment, remote desktop, software/hardware inventory, endpoint management, and endpoint configuration reporting.

Related Articles

How To Delete User Profiles Remotely with PowerShell

When a user logs onto the computer for the first time (not via the network to access shared folders or printers), Windows creates a user profile. Among its contents are the NTUSER.DAT file (user profile settings), user-specific folders (My Documents, Desktop, etc.),...

About Action1 RMM

Action1 RMM is a cloud-based IT solution for remote monitoring and management, patching, and remote support.

Start your free two-week trial of Action1, or use RMM tools for free forever on 50 endpoints with no functionality limitations!



0 Comments

Submit a Comment

Your email address will not be published.

cloud patch management solutions action1

MSP Solution

Centralize endpoint management and boost efficiency of IT service delivery.

automated server patch management action compliance

Patch Management

Identify and deploy missing OS and third-party software updates.

cloud software deployment tools windows

Software Deployment

Distribute software and updates across managed endpoints.

software distribution tools software inventory action1

IT Asset Inventory

Keep a detailed inventory and manage hardware and software assets.

web client remote desktop

Remote Desktop

Support users via seamless remote desktop connection.

web based rdp client

Unattended Access

Provide administrative support and manage remote devices.

automated patch management action1

Endpoint Management

Run PowerShell, custom scripts, reboot computers and restart services.

API integrations action1

RESTful API

Integrate Action1 RMM to your IT ecosystem.

computer inventory tool for compliance

Reports and Alerts

Conduct endpoint security audits with comprehensive reporting.