Skip to main content
Version: 5.18.17

Delete

public BackendReturnObject Delete(string collectionName);

Parameter​

ValueTypeDescription
collectionNamestringName of collection where data is located

Description​

Deletes the saved data from the cloud storage.

Example​

Synchronous​

var bro = Backend.CloudSave.Delete("collectionName");
if(bro.IsSuccess())
{
// When the request is successful, writes processing code.
}

Asynchronous​

Backend.CloudSave.Delete("collectionName", bro =>
{
if(bro.IsSuccess())
{
// When the request is successful, writes processing code.
}
});

ReturnCase​

Success cases​

When the deletion is successful

StatusCode : 204

Message : Success

Error cases​

When the collection does not exist

StatusCode : 404

Message : not exist folder

Code : NotFound

When the data does not exist

StatusCode : 404

Message : not exist file

Code : NotFound