is it this you're looking for?
Code:

ClearEventLog( )
Action: Clears up a Windows NT eventlog.

Syntax: CLEAREVENTLOG ("eventlog")

Parameter: Eventlog

String indicating the eventlog to clear. By default, Windows NT supports three eventlogs:
"Application", "Security" and "System". Optionally, the string can include the name of a remote system
on which to clear the log.

Returns:
0 Eventlog cleared
>0 Errorcode

See Also: BackupEventLog( ), LogEvent( )

Examples:

$rc=ClearEventLog("Application")
$rc=ClearEventLog("\\PDC\Application")
$rc=ClearEventLog("System")



Edited by Björn (2006-09-04 03:00 PM)