Click or drag to resize

FileBrowserServicesDelete Method


Deletes a Asset file or folder. Note that deleting a folder will remove all files below, so use with caution.

Namespace:  IngeniuxCMService
Assembly:  IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.5.94
Syntax
public XHRServiceResponseGeneric<DeleteOutput> Delete(
	DeleteInput data
)

Parameters

data
Type: DeleteInput

The information on the deletion

Examples
Sample JSON request deleting folder
JavaScript
{
    "data": {
        "type": "File",
        "relativePath": "Documents/Testfolder",
        "folderPath": "Documents/Testfolder",
        "pickedNames": [],
        "isFolder": true
    }
}
Examples
Sample JSON request deleting file
JavaScript
{
    "data": {
        "type": "File",
        "relativePath": "Documents",
        "folderPath": "Documents",
        "pickedNames": ["free-infamous-second-son-hd-desktop-wallpaper (17).jpg"],
        "isFolder": false
    }
}

Return Value

Type: XHRServiceResponseGenericDeleteOutput

The information of actual deletion

JavaScript
{
    "code": 0,
    "error": null,
    "message": {
        "fileNames": ["free-infamous-second-son-hd-desktop-wallpaper%20(17).jpg"]
    }
}
See Also