How to delete the elements in form

Hi,
I have a window and in that window i have form .
In form i have several elements like combo,textbox etc

now i need to delete all the elements when a user click on the button.

Hello,

now i need to delete all the elements when a user click on the button

You can iterate through the elements of the form and remove these elements with the help of removeView method

Check the sample: Code Snippet