Skip to main content
Version: 6.0.0

DeleteEntity

Method deletes the given entity on the server.

This method is affected by versioning. See the versioning documentation for more information.

ServiceOperation
globalEntityDELETE

Method Parameters​

ParameterDescription
entityIdThe id of the entity to update
versionThe version of the entity to update. Use -1 to indicate the newest version

Usage​

http://localhost:3000
string entityId = "a-entity-id";
int version = 2;
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.GlobalEntityService.DeleteEntity(entityId, version, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": null
}
Common Error Code

Status Codes​

CodeNameDescription
40344ENTITY_VERSION_MISMATCHThe version parameter does not match the current version on the server