Remove all childens from layout or page



i need to remove bunch of images from layout is they are any way to remove them all at once


you can iterate main through layout children and use removeChild method to remove the images.
or if you want to just hide them then you can just set images visibility to collapse


If you want to remove all child elements from the parent layout at one shot, you may use removeChildren method.