function removeNodes(obj, nodes)
%

%   Copyright 2019 The MathWorks, Inc.    

    for idx = 1 : numel(nodes)
        n = nodes(idx);
        tSynced = obj.synced;
        obj.synced = true;
        %it triggers load, let's not sync during this
        obj.deleteTreeNode(n, true);
        obj.synced = tSynced;
        obj.removeDataFromMaps(n.data);
        n.parentTree.removeTree(n);
    end
end