%% Delete a Test Step Programmatically
% This example shows how to delete a test step programmatically from a Test Sequence block.
% 1. Load the model.

Model = 'sltestRollRefTestExample';
load_system(Model);

%
% 2. Delete the step Stop from the Test Sequence block.

sltest.testsequence.deleteStep('sltestRollRefTestExample/Test Sequence','Stop');

%
% 3. Close the model

close_system(Model,0);

%
%
% Copyright 2012 The MathWorks, Inc.