The Delete Data Store API

Using the Delete Data Store API, you can delete a data store.
METHOD DELETE
URI
https://<historianservername>/historian-rest-api/v1/datastore
SAMPLE URI
https://<historianservername>/historian-rest-api/v1/datastore

Payload

{

"dataStoreName": ""

}
SAMPLE RESPONSE
{

    "ErrorCode": 0,

    "ErrorMessage": null

}
SAMPLE cURL COMMAND
curl -i -H "Accept: application/json" -i -H "Content-Type: application/json"
-H "Authorization: Bearer <TOKEN>” -d “{ \”dataStoreName \”:\”name\”}” -X DELETE
https://<historianservername>/historian-rest-api/v1/datastore

Response Parameters

Parameter Data Type Required? Description
ErrorCode Integer Yes For example, ErrorCode = 0 implies the operation was successful.
ErrorMessage String Yes For example, NULL.