NetErrorLogClear or Net32ErrorLogClear

The NetErrorLogClear API clears (and optionally saves) the error log file of a computer.