Use the removeAllViews () function on your layout.
All Layout classes are children of the ViewGroup, so you can use the ViewGroup.removeAllViews () method
yourLayout.removeAllViews(); ....
yourLayout.removeAllViews();