Delete Calc or MDX Script
/essbase/rest/v1/applications/{applicationName}/databases/{databaseName}/scripts/{scriptName}
Deletes the specified calculation or MDX script in the specified application and database.
Request
-
applicationName(required): string
Application name.
-
databaseName(required): string
Database name.
-
scriptName(required): string
Calc or MDX script name.
-
file: string
Type of script file. Supported types are calc (the default), or mdx.
Default Value:calc
Response
- application/json
- application/xml
204 Response
Script deleted successfully.
400 Response
Bad Request
Failed to delete the script. The application, database, or script name may be incorrect.
500 Response
Internal Server Error.
Examples
The following example shows how to delete an Essbase calculation or MDX script.
This example uses cURL to access the REST API from a Windows shell script. The calling user's ID and password are variables whose values are set in properties.bat
.
Delete Calculation Script
curl -X DELETE https://myserver.example.com:9001/essbase/rest/v1/applications/CalcTuple/databases/Tuple/scripts/svProductMarketTuplesNew -H "Accept: application/json" -H "Content-Type:application/json" -u %User%:%Password%
Delete MDX Script
curl -X DELETE "https://myserver.example.com:9001/essbase/rest/v1/applications/Sample/databases/Basic/scripts/mdx001?file=mdx" -H "Accept: application/json" -H "Content-Type:application/json" -u %User%:%Password%