Skip to main content
Version: 5.7.0

DeleteUserFile

Deletes a single user file.

ServiceOperation
fileDELETE_USER_FILE

Usage

http://localhost:3000
string cloudPath = "dir1/dir2";
string cloudFilename = "filename";
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.FileService.DeleteUserFile(cloudPath, cloudFilename, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"fileDetails": {
"updatedAt": 1452616408147,
"fileSize": 100,
"fileType": "User",
"expiresAt": 1452702808146,
"shareable": true,
"uploadId": "cf9a075c-587e-4bd1-af0b-eab1a79b958f",
"createdAt": 1452616408147,
"profileId": "bf8a1433-62d2-448e-b396-f3dbffff44",
"gameId": "99999",
"path": "dir1/dir2",
"filename": "filename",
"replaceIfExists": true,
"cloudPath": "bc/g/99999/u/bf8a1433-62d2-448e-b396-f3dbffff44/f/dir1/dir2/filename"
}
}
}
Common Error Code

Status Codes

CodeNameDescription
40431CLOUD_STORAGE_SERVICE_ERRORCloud storage service error
40432FILE_DOES_NOT_EXISTFile does not exist

Method Parameters

ParameterDescription
cloudPathFile path
cloudFilenameName of file