Skip to main content
Version: 5.7.0

SysDeleteGlobalFiles

Delete all the files in the specified directory. Returns a list of the files that were deleted.

ServiceOperation
globalFileV3SYS_DELETE_GLOBAL_FILES

Method Parameters

ParameterDescription
treeIdTree location to delete all files
folderPathPath of that tree location (as an intention check)
treeVersionCurrent tree version
recurseDelete files in subdirectories as well?

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"status": 200,
"data": {
"deletedFiles": [
{
"treeId": "",
"fileName": "testFile3.txt",
"version": 1,
"fileId": "34abacc5-c048-4bcc-a3ce-8eb751a718a6"
},
{
"treeId": "",
"fileName": "testFile2.txt",
"version": 1,
"fileId": "d77122cc-f87b-4f98-801f-e49568d7061f"
},
{
"treeId": "",
"fileName": "testFile1.txt",
"version": 1,
"fileId": "ed126aaa-27de-48c7-b650-18e7af52ccb9"
}
]
}
}