Delete
public BackendReturnObject Delete(string collectionName);
Parameter
Value | Type | Description |
---|---|---|
collectionName | string | Name 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