Skip to main content
Version: 5.7.0

RemovePlayerScore

Removes a player's score from the leaderboard.

ServiceOperation
leaderboardREMOVE_PLAYER_SCORE

Method Parameters

ParameterDescription
leaderboardIdThe leaderboard to post to.
versionIdThe version of the leaderboard. Use -1 to specify the currently active leaderboard version.

Usage

http://localhost:3000
string leaderboardId = "default";
int versionId = -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.LeaderboardService.RemovePlayerScore(leaderboardId, versionId, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"numScoresRemoved": 1
}
}