Delete a page
This script will delete all the children of the select parent page without deleting the parent.
number parent = getPage("CTR", "Delete a page"); //page to delete
number [] childPages = getChildPages(parent); //get child pages
//loop through child pages
for(number child in childPages) {
//sample syntax - deletePage(pageId)
deletePageTree(child); //delete the child page
}