dhxTree:How can i clear the data befor dhxTree.parse()

dhxTree:How can i clear the data befor dhxTree.parse()
Is it have methods like “clearAll”?

You may try to call the deleteItem() method for the parent node of your dhtmlxTree:
https://docs.dhtmlx.com/api__dhtmlxtree_deleteitem.html

myTree.deleteItem(0)