Open this page in the API Guide

HierarchyFolderNode.removeAllChildren Method

Removes all children from this node.