Skip to main content
Version: 5.11.8

DeleteV2

public BackendReturnObject Delete(string tableName, string inDate, string owner_inDate);

Parameters

ValueTypeDescription
tableNamestringTable name of the game information to be deleted
inDatestringinDate value of the row to be deleted
owner_inDatestringinDate of the user who owns the row

Description

From the values stored in the table, the rows whose values in the inDate column match the user's owner_inDate are searched and deleted.

  • The data can be deleted regardless of their schema definition statuses.
  • You can only delete your own public/private data.
  • You can delete the public data of others.
  • You cannot delete the private data of others. You can import your owner_inDate via { Backend.UserInDate }.

Example

Synchronous

// Removes row of your inDate
Backend.GameData.DeleteV2("tableName", inDate, Backend.UserInDate);

//Removes row of other's inDate
Backend.GameData.DeleteV2("tableName", inDate, "owner_inDate");

Asynchronous

// Removes row of your inDate
Backend.GameData.DeleteV2("tableName", inDate, Backend.UserInDate, (callback) =>
{
// Post-process
});

//Removes row of other's inDate
Backend.GameData.DeleteV2("tableName", inDate, "owner_inDate", (callback) =>
{
// Post-process
});

SendQueue

// Removes row of your inDate
SendQueue.Enqueue(Backend.GameInfo.DeleteV2, "tableName", inDate, Backend.UserInDate, (callback) =>
{
// Post-process
});

// Removes row of other's inDate
SendQueue.Enqueue(Backend.GameInfo.DeleteV2, "tableName", inDate, "owner_inDate", (callback) =>
{
// Post-process
});

Return cases

Success cases

When the lookup is successful
statusCode : 204

Error cases

When the user tries to delete the information of others' private table
statusCode : 403
errorCode : ForbiddenException

When the user tries to delete a non-existent row
statusCode : 404
errorCode : NotFoundException

When the user tries to delete a non-existent table
statusCode : 404
errorCode : NotFoundException

When an attempt is made to delete an inactive table
statusCode : 412
errorCode : PreconditionFailed