Delete Calc or MDX Script

delete

/essbase/rest/v1/applications/{applicationName}/databases/{databaseName}/scripts/{scriptName}

Deletes the specified calculation or MDX script in the specified application and database.

Request

Path Parameters
Query Parameters
  • Type of script file. Supported types are calc (the default), or mdx.

    Default Value: calc
Back to Top

Response

Supported Media Types

204 Response

No Content

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.

Back to Top

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%
Back to Top