function deleteRun(this, runName)
    % DELETERUN
    
    % Copyright 2018 The MathWorks, Inc.
    
    allDs = fxptds.getAllDatasetsForModel(this.BlockDiagram.getFullName);
    for i = 1:numel(allDs)
        allDs{i}.deleteRun(runName);
    end
    this.DataManager.removeRunFromTable(runName);
    % Update the code view if it exists
    fptInstance = fxptui.FixedPointTool.getExistingInstance;
    if ~isempty(fptInstance)
        fptInstance.getExternalViewer.runsDeleted(runName);
    end
    
end