The code looks ine.
As stated above there is no need to continue the loop once you have removed the view, so you coould add a RETURN after the RemoveView.
The reason you would loop in reverse is that when you delete a view all the higher numbered views are shifted down one and your loop exit condition is now set at more than the number of views.