SysDeleteFile
Delete a file.
Service | Operation |
---|---|
groupFile | SYS_DELETE_FILE |
Method Parameters
Parameter | Description |
---|---|
groupId | The id of the group. |
fileId | The id of the file. |
version | The target version of the file. |
filename | The file name for verification purposes. |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
var groupId = "dfsfsffsd";
var fileId = "xxxx";
var version = 1;
var filename = "gfile";
var groupFileProxy = bridge.getGroupFileServiceProxy();
var postResult = groupFileProxy.sysDeleteFile(groupId, fileId, version, filename);
if (postResult.status == 200) {
// Success!
}
{
"service": "groupFile",
"operation": "SYS_DELETE_FILE",
"data":
{
"groupId": "dfsfsffsd",
"fileId": "xxxx",
"version": 1,
"filename": "gfile"
}
}
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
}