DestroyLayout destroys a layout and all its contents so it can't be used any more.

app.DestroyLayout( layout )

As a result, all memory occupied by these objects will be released.

See Also: CreateLayout, AddLayout

Example - Destroy layout and check if deleted click to expand contents