FileBrowserServicesDelete Method Ingeniux CMS Web Services API

Delete 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: 9.0.565.0 (9.0.565)
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

Reference