Skip to main content
Version: 5.11.8

DeleteCharacter

public BackendReturnObject DeleteCharacter(string uuid, string inDate);

Parameters

ValueTypeDescription
uuidstringuuid of the owned character
inDatestringinDate of the owned character

Description

Delete your character with the matching uuid and inDate entered.
Upon deletion, certain information of the characters is deleted.

The following pieces of information are deleted immediately.

  • Device token used in push messages
  • Friends information (list of sent friends requests, list of received friend requests)

The following pieces of information are deleted when the hour of withdrawal ends.
(If withdrawal is requested at 12:30, the data is deleted at 1:00.)

  • Ranking information
  • Nickname information
  • Federation & custom ID information
  • Country code information
  • Game information
  • Guild information - If the guild master withdraws, the corresponding guild will exist without a guild master.- If the withdrawn user was the guild's only member, the guild is deleted automatically.

Example

Synchronous

var bro = Backend.MultiCharacter.Character.GetCharacterList();

// 0th user
LitJson.JsonData characterJson = bro.GetReturnValuetoJSON()["characters"][0];

string uuid = characterJson["uuid"].ToString();
string inDate = characterJson["inDate"].ToString();

var bro2 = Backend.MultiCharacter.Character.DeleteCharacter(uuid, inDate);
if(bro2.IsSuccess()) {
Debug.Log("Login successful");
}
else {
Debug.LogError("Failed to log in " + bro2.ToString());
}

Asynchronous

Backend.MultiCharacter.Character.GetCharacterList(callback => {
if(callback.IsSuccess()) {
// 0th user
LitJson.JsonData characterJson = callback.GetReturnValuetoJSON()["characters"][0];

string uuid = characterJson["uuid"].ToString();
string inDate = characterJson["inDate"].ToString();

Backend.MultiCharacter.Character.DeleteCharacter(uuid, inDate, callback2 => {
if(callback2.IsSuccess()) {
Debug.Log("Deleted : " + callback2.ToString());
}
else {
Debug.LogErorr("Failed to delete : " + callback2.ToString());
}
);
}
});

SendQueue

SendQueue.Enqueue(Backend.MultiCharacter.Character.GetCharacterList, callback => {
if(callback.IsSuccess()) {
// 0th user
LitJson.JsonData characterJson = callback.GetReturnValuetoJSON()["characters"][0];

string uuid = characterJson["uuid"].ToString();
string inDate = characterJson["inDate"].ToString();

SendQueue.Enqueue(Backend.MultiCharacter.Character.DeleteCharacter, uuid, inDate, callback2 => {
if(callback2.IsSuccess()) {
Debug.Log("Deleted : " + callback2.ToString());
}
else {
Debug.LogErorr("Failed to delete : " + callback2.ToString());
}
);
}
});

ReturnCase

Success cases

When the character is deleted successfully
statusCode : 204

Error cases

When uuid or inDate is null or string.Empty
statusCode : 400
errorCode : ValidationException

When uuid and inDate do not match
statusCode : 404
errorCode : NotFoundException