Skip to main content
Version: SDK-5.9.6

DeleteRandomData

public BackendReturnObject DeleteRandomData(RandomType randomType, string uuid);

Description

Deletes my data that exists in the random lookup group.
In the case of guilds, all guild members may execute the method.

Even if your data does not exist in the group, the result is returned as a success without errors.

Parameters

ValueTypeDescription
randomTypeRandomTypeRandom lookup type
(RandomType.User refers to the user and RandomType.Guild refers to the guild)
uuidstringUuid of the random lookup

Example

Synchronous

Backend.RandomInfo.DeleteRandomData(RandomType.User, "9cd283c0-00c6-11ed-93ca-27f1ba8e440c");

Asynchronous

Backend.RandomInfo.DeleteRandomData(RandomType.User,
"9cd283c0-00c6-11ed-93ca-27f1ba8e440c", (callback) => {
// Post-process
});

SendQueue

SendQueue.Enqueue(Backend.RandomInfo.DeleteRandomData, RandomType.User, 
"9cd283c0-00c6-11ed-93ca-27f1ba8e440c", (callback) => {
// Post-process
});

Return cases

Success cases

When the data is deleted successfully
statusCode : 204
message : Success

Error cases

When the entered uuid is null or string.Empty
statusCode : 400
errorCode : ValidationException
message : uuid is null or empty

When the type of the random lookup is different(designated as RandomType.Guild when it is user type)
statusCode : 400
errorCode : BadParameterException
message : bad type is not match, Type does not match

(Random lookup type: Guild) When the user has not joined a guild
statusCode : 404
errorCode : NotFoundException
message : guild not found, guild cannot be found

When the uuid does not exist
statusCode : 404
errorCode : NotFoundException
message : randomPool not found, randomPool cannot be found