CTP3 – Remove-EventLog
Remove-EventLog is a new cmdlet in CTP3. It brings the following parameters:
ComputerName
LogName
Source
Verbose
Debug
ErrorAction
WarningAction
ErrorVariable
WarningVariable
OutVariable
OutBuffer
WhatIf
Confirm
The Source is how applications write to the event log – it is possible to just remove one or more sources rather than the whole event log.
To remove an event log
Remove-EventLog -LogName test23
Assuming you have the correct privileges the removal happens. This is one cmdlet where I would very strongly recommend using the –whatif and –confirm parameters


Read the complete post at http://richardsiddaway.spaces.live.com/Blog/cns!43CFA46A74CF3E96!1961.entry