Clear windows event logs

not so subtle...

The event logs can be cleared with the following utility commands:

Wevtutil

Wevtutil cl system
Wevtutil cl application
Wevtutil cl security

Powershell

$logs = Get-EventLog -List | ForEach-Object {$_.Log}
$logs | ForEach-Object {Clear-EventLog -LogName $_ }
Get-EventLog -list

Last updated

Was this helpful?