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 Item Endpoint
Deletes an item in the repository.
Availability: Business Analyst Server.
http://localhost:6080/arcgis/rest/services/DefaultMap/MapServer/exts/BAServer/DeleteItem/execute
Parameters
WorkspaceName (required) |
Workspace name. Type string. |
ProjectName (required) |
Project name. Type string. |
FolderType (required) |
Folder type to create item. Type esriFolderType. |
ItemName (required) |
Item name. 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 item is absent, this method has no effect.
Example Usage
The example below demonstrates the deletion of an existing folder item in Business Analyst Server Repository.
{ "results": [ { "paramName":"OutputStatus", "dataType":"GPBoolean", "value":true } ], "messages": [ ] }
In attempt to delete a missing item, the false value is returned in the case of shapefile-based repository and an error message is returned in the case of SDE-based repositury:
{ "results": [ { "paramName":"OutputStatus", "dataType":"GPBoolean", "value":false } ], "messages": [ ] }
{ "error": { "code":-2147467259, "message":"Failed to delete folder item.", "details": [ "Error code: 0x80004005\n...\n" ] }, "messages": [ ] }
NOTE: The response has been abbreviated where "..." is noted.
See Also