log4net SDK Reference

RollingFileAppender.DeleteFile Method 

Deletes the specified file if it exists.

[Visual Basic]
Protected Sub DeleteFile( _
   ByVal fileName As String _
)
[C#]
protected void DeleteFile(
   string fileName
);

Parameters

fileName
The file to delete.

Remarks

Delete a file if is exists. The file is first moved to a new filename then deleted. This allows the file to be removed even when it cannot be deleted, but it still can be moved.

See Also

RollingFileAppender Class | log4net.Appender Namespace