# EssDeleteApplication

Description

EssDeleteApplication() 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

    ESS_FUNC_M EssDeleteApplication (hCtx, AppName);

ESS_HCTX_T | hCtx
ESS_STR_T | AppName

Parameters

hCtx | Essbase 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.

Access

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

Example

    ESS_FUNC_M
    ESS_DeleteApp (ESS_HCTX_T  hCtx)
    {
       ESS_FUNC_M       sts = ESS_STS_NOERR;
       ESS_STR_T        AppName;
       AppName =  "Sample";

       sts = EssDeleteApplication (hCtx, AppName);

       return(sts);
    }

See Also

EssDeleteDatabase()
EssDeleteObject()