Syntax
deletePageTree(pageId);
Description
Deletes the selected page and all its child pages.Parameters
Parameter name | Type | Required | Description |
---|---|---|---|
page ID | number | Yes | ID of the page to be deleted, the whole tree where this page is a parent will be deleted as well. |
Return type
boolean (true/false)
Returns true if the operation was successful.
Example
boolean success = deletePageTree(11801); print("Return " + success);
See also