Skip to main content
Version: 5.7.0

SysDeleteFolder

Delete the specified folder (and optionally child files and subfolders). Return the updated directory tree.

ServiceOperation
globalFileV3SYS_DELETE_FOLDER

Method Parameters

ParameterDescription
treeIdTree location of the folder to delete
folderPathPath of that tree location (as an intention check)
treeVersionCurrent tree version
recurseDelete files and subfolders if not empty?

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"status": 200,
"data": {
"globalTree": {
"tree": [
{
"treeId": "2188e9cf-27fa-4a33-8d06-3306f9a74bf8",
"children": null,
"name": "art",
"type": "Folder",
"desc": "Folder for art assets"
},
{
"treeId": "146cce63-da7a-40c7-bd57-5b5f81607523",
"children": null,
"name": "audio",
"type": "Folder",
"desc": "For audio files"
}
],
"treeVersion": 3
}
}
}