<divid="treeview"></div><script>$("#treeview").kendoTreeView({dataSource:[{text:"foo",items:[{text:"bar"}]}]});var treeview =$("#treeview").data("kendoTreeView");var bar = treeview.findByText("bar");
treeview.remove(bar);/* The result can be observed in the DevTools(F12) console of the browser. */console.log($("#treeview").find(".k-item").length);// logs 1</script>