# EsbDeleteApplication

Description

EsbDeleteApplication() deletes an existing application, either on the client or the server. If the application is running on the server, then it is first stopped.

Syntax

    EsbDeleteApplication (hCtx, AppName)

    ByVal hCtx    As Long
    ByVal AppName As String

Parameters

hCtx | Essbase VB API context handle.
AppName | Name of application to delete.

Return Value

None.

Notes

- Deleting a client application removes the local application directory and contents. It also removes all objects stored with the application, including all databases.
- To delete a server application, the connected user must have "create/delete applications" privilege.

Access

For a server application, the caller must have application Create/Delete/Edit privilege (ESB_PRIV_APPCREATE).

Example

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

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

       AppName = "Sample"
       '*******************
       ' Delete Application
       '*******************
       sts = EsbDeleteApplication (hCtx, AppName)
    End Sub

See Also

EsbDeleteDatabase()
EsbDeleteObject()