PageCommandsServicesDelete Method Ingeniux CMS Web Services API

Deletes a list of Pages

Namespace: IngeniuxCMService
Assembly: IngeniuxCMService (in IngeniuxCMService.dll) Version: 9.0.565.0 (9.0.565)
Syntax

public XHRServiceResponseGeneric<PageCommandReturnInformation> Delete(
	string[] pageIds,
	string pubTarget
)

Parameters

pageIds
Type: SystemString
Ids of the Pages to be deleted
pubTarget
Type: SystemString
Id of current Publishing Target

Return Value

Type: XHRServiceResponseGenericPageCommandReturnInformation

Information of the Page Command action and the properties of deleted Pages, without properties information

Examples

Sample JSON return
JavaScript
{
    "code": 0,
    "error": null,
    "message": {
        "contentChanged": false,
        "pageAction": "delete",
        "pageProperties": null,
        "pages": [{
            "id": "x111",
            "props": null
        }, {
            "id": "x110",
            "props": null
        }],
        "queryString": null
    }
}
Remarks

If Page Ids are null or empty, or any of the Pages don't exist, return error status.

If current User doesn't have full control access of any of the Pages, return error status.

See Also

Reference