SysDeleteGlobalFile
Deletes the specified global file.
Service | Operation |
---|---|
globalFileV3 | SYS_DELETE_GLOBAL_FILE |
Method Parameters
Parameter | Description |
---|---|
fileId | The id of the file |
version | The version of the file |
filename | The filename of the file (provided as a check) |
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 fileId = "hjvfsghguhuhrtghgh";
var version = 1;
var filename = "testFile2.txt";
var globalFileProxy = bridge.getGlobalFileV3ServiceProxy();
var postResult = globalFileProxy.sysDeleteGlobalFile(fileId, version, filename );
if (postResult.status == 200) {
// Success!
}
{
"service": "globalFileV3",
"operation": "SYS_DELETE_GLOBAL_FILE",
"data": {
"fileId": "8d2e30b0-6308-4aeb-ac6a-68e4a458365b",
"version": 1,
"filename": "testFile2.txt"
}
}
JSON Response
{
"status": 200,
"data": {
"fileDetails": {
"treeId": "",
"fileName": "testFile3.txt",
"version": 1,
"fileId": "8d2e30b0-6308-4aeb-ac6a-68e4a458365b"
}
}
}