Skip to main content
Version: 5.7.0

DeleteFile

Delete a file.

ServiceOperation
groupFileDELETE_FILE

Method Parameters

ParameterDescription
groupIdThe id of the group.
fileIdThe id of the file.
versionThe target version of the file.
filenameThe file name for verification purposes.

Usage

http://localhost:3000
string groupId = "dfsfsffsd";
string fileId = "xxxx";
int version = 1;
string filename = "gfile";
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.GroupFileService.DeleteFile(groupId, fileId, version, filename, successCallback, failureCallback);
JSON Response
{
"data": {
"fileDetails": {
"treeId": "fb3431cd-6e2f-47f1-8100-8941abf6bb4f",
"fileName": "glogcopy.json",
"version": 1,
"fileId": "0554430e-51a1-44d4-b6f4-bffae67185dc"
},
"groupId": "2bf538d1-19ea-4e14-9862-f979215e09b7"
},
"status": 200
}