EsbDeleteLogFile

Description

EsbDeleteLogFile() deletes an application log file on the server.

Syntax
EsbDeleteLogFile (hCtx, AppName)
ByVal hCtx    As Long
ByVal AppName As String

Parameters

hCtxEssbase VB API context handle
AppNameApplication name. If AppName is NULL or "" (the empty string), EsbDeleteLogFile() deletes the essbase.log log file.

Return Value

None.

Access

This function requires the caller to have Application Design privilege (ESB_PRIV_APPDESIGN) for the specified application.

Example

Declare Function EsbDeleteLogFile Lib "ESBAPIW" (ByVal hCtx As Long, ByVal AppName As String) As Long

Sub ESB_DeleteLogFile ()
   Dim sts As Long
   Dim AppName As String

   AppName = "Sample"

   '****************
   ' Delete Log file
   '****************
   sts = EsbDeleteLogFile (hCtx, AppName) 
End Sub

See Also

EsbGetLogFile()