The following example clears the current task of all its steps.
Sub Main
CurrentTask.ClearSteps
End Sub