/
Delete a page
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 }
See Other Recipes
See More Documentation
, multiple selections available,
Related content
deletePage
deletePage
More like this
removePage
removePage
More like this
Delete a page tree
Delete a page tree
More like this
deletePageTree
deletePageTree
More like this
Delete all comments from a page
Delete all comments from a page
More like this
getPages
getPages
More like this