DhtmlxLayout how can i remove one layout

when i create a layout ,such as :Header/Footer with menu/toolbar/ribbon/status

then i have a question?
how can i remove one layout and release the browser memory
or rather ,how can i remove one,create a new layout?
have any api?

Hello
There is unload() method to destroy layout:
docs.dhtmlx.com/api__dhtmlxlayout_unload.html

the example this:http://dhtmlx.com/docs/products/dhtmlxLayout/samples/03_attach_to_layouts_top/inc/header_footer_with_menu.html

when i use the method :unload() or set the layout is null
and then the toolbar will not show next time,only have layout without toolbar.

is there any method to change the layout parttern and the content is clear ,the memory can be release with toolbar menu these compments on above example.

If you destroy layout - all attached object will be destroyed too.

is there any method to change the layout parttern and the content is clear ,the memory can be release with toolbar menu these compments on above example.

Could you clarify this question, please?