destroying WebContainers

I have a parent WebContainer.
Within that WebContainer I embed other webContainers.
When it becomes necessary to redraw the parent I thought I could simply set the children web containers to nil and then re-embed new instances.
However, setting each child container to nil does not seem to remove them from the parent.

What must i do to ‘redraw’ my webcontainer?

Use childContainer.close.