removeAll()
removes all items in the target branch or all items of the component
removeAll(id?: string | number): void;
Parameters:
id?: string | number- optional, the id of the branch
Example
toolbar.data.removeAll(id);
When called without the parameter, the method removes all items of the component.