Skip to main content
Version: 6.1.0

DeleteEntity

Method deletes the given entity on the server.

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

ServiceOperation
entityDELETE

Method Parameters​

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

Usage​

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

Status Codes​

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