clearNodes();
The clearNodes method clears all tree nodes.
Executing the example requires the SimpleTreeList component with the Tree identifier (see Example of Creating the SimpleTreeList Component).
// Delete all tree nodes Tree.clearNodes();
After executing the example all nodes are deleted.
See also: