Skip to main content
Version: 5.7.0

DeleteSingleton

Deletes the specified custom entity singleton, owned by the session's user, for the specified entity type, on the server.

ServiceOperation
customEntityDELETE_SINGLETON

Method Parameters

ParameterDescription
entityTypeThe type of custom entity singleton being deleted. Custom entity type must have option isOwned set to true.
versionVersion of the custom entity singleton being deleted.

Usage

http://localhost:3000
string entityType = "athletes";
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.CustomEntityService.DeleteSingleton(entityType, version, successCallback, failureCallback);
JSON Response
{
"data": null,
"status": 200
}