Skip to main content
Version: 5.7.0

DeleteSingleton

Method deletes the given singleton on the server.

Singletons are defined by their entity type, so no two singletons of the same type can exist at once.

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

ServiceOperation
entityDELETE_SINGLETON

Method Parameters

ParameterDescription
entityTypeThe entity type as defined by the user
versionThe version of the entity to delete. Use -1 to indicate the newest version

Usage

http://localhost:3000
string entityType = "settings";
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.DeleteSingleton(entityType, 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