Windows clear all events

Get-EventLog -LogName * | ForEach { Clear-EventLog $_.Log }

references:

UPDATED