function removets(view,ts)

%% Removes a time series from a view node. 
if ~isempty(view.Plot)
    [junk,I] = view.Plot.getTimeSeries(ts.Name);
    if ~isempty(I)
        view.Plot.rmresponse(view.Plot.response(I));
    end
    % Synconize the node properties
    if isequal(ts,view.Timeseries1)
         set(view,'Timeseries1',[])
    end
    if isequal(ts,view.Timeseries2)
        set(view,'Timeseries2',[])
    end
end

%% Notify listeners
view.send('tschanged',handle.EventData(view,'tschange'));