Click or drag to resize

PageCommandsServicesDelete Method


Deletes a list of Pages

Namespace: IngeniuxCMService
Assembly: IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.6.492
Syntax
public XHRServiceResponseGeneric<PageCommandReturnInformation> Delete(
	string[] pageIds,
	string pubTarget
)

Parameters

pageIds  String
Ids of the Pages to be deleted
pubTarget  String
Id of current Publishing Target

Return Value

XHRServiceResponseGenericPageCommandReturnInformation

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

Example
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