How to clear all items from a autoloading tree?

how to clear all items from a autoloading tree? i want to clear all items from a tree which load data from server side.but there is no function like clearAllItems

If you mean to delete (to destruct) a tree, use method destructor()
docs.dhtmlx.com/doku.php?id=dhtm … destructor