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
Parameter | Description |
---|---|
hCtx | VB API context handle. |
AppName | Name of application to delete. |
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.
Return Value
None.
Access
For a server application, the caller must have application Create/Delete/Edit privilege (ESB_PRIV_APPCREATE).
Example
Declare Function EsbDeleteApplication Lib "ESBAPIN" (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