API Reference > ui-components > Tree > MutableTreeModel > clearChildren clearChildren Method Removes all children for parent specified by id. clearChildren(parentId: string | undefined): void Parameter Type Description parentId string | undefined id of parent node or undefined to remove root nodes. Returns - void Defined in ui/components/src/ui-components/tree/controlled/TreeModel.ts Line 318 Last Updated: 13 June, 2024