EventLog.Clear
Clears an event log
Category
Event log
Script section
All
EventLog.Clear
Machine
,
EventLog
Machine
Name of machine on which to clear the log.
EventLog
Name of log to clear -
"Application", "Security", "System", "Directory Service", "DNS Server" or "File Replication Service"
Example
Clear the application log on \\main01
EventLog.Clear
\\main01, Application
Full example
Backup and clear remote event logs