B U S I N E S S A N A L Y S T 10.2 R E S T R E P O S I T O R Y U T I L I T Y
Delete Workspace Endpoint
Deletes a workspace.
Availability: Business Analyst Server.
http://localhost:6080/arcgis/rest/services/DefaultMap/MapServer/exts/BAServer/DeleteWorkspace/execute
Parameters
WorkspaceName (required) |
Name of workspace to delete. Type string. |
f (optional) |
Response format. Type string. Available formats: HTML, JSON, PJSON, XML. Default: HTML. |
token |
Authentication token. This parameter is required if your Business Analyst Server is secured. Type string. |
Returns
Variable of type boolean
Remarks
If the workspace to delete is absent, this method has no effect. If the "Default Workspace" is deleted, all of its contents will be deleted and the workspace will be recreated on the next full reload.
Example Usage
The example below demonstrates the deletion of an existing workspace in Business Analyst Server Repository.
{ "results": [ { "paramName":"OutputStatus", "dataType":"GPBoolean", "value":true } ], "messages": [ ] }
In attempt to delete a missing workspace, the false value is returned:
{ "results": [ { "paramName":"OutputStatus", "dataType":"GPBoolean", "value":false } ], "messages": [ ] }
NOTE: The response has been abbreviated where "..." is noted.
See Also