Skip to main content
Version: 5.7.0

DeleteEntities

Deletes all applicable custom entities from the server based on the custom entity type and specified delete criteria, enforcing ownership/ACL permissions.

ServiceOperation
customEntityDELETE_ENTITIES

Method Parameters

ParameterDescription
entityTypeThe type of custom entity being deleted.
deleteCriteriaThe delete criteria to be applied.

Usage

http://localhost:3000
string entityType = "athletes";
string deleteCriteria = "{\"entityId\": { \"$in\":[\"aaaa-bbbb-cccc-dddd\", \"ffff-gggg-hhhh-iiii\", \"jjjj-kkkk-llll-mmmm\"]}";
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.CustomEntityService.DeleteEntities(entityType, deleteCriteria, successCallback, failureCallback);
JSON Response
{
"data": {
"deletedCount": 2
},
"status": 200
}