WebControl.Close Method
From Xojo Documentation
Method
This removes the control from the page, but only if the control is part of a Control Set or is a WebContainer. Otherwise it does not do anything.
Notes
In general, if you want to add or remove controls from pages, use a WebContainer.
See Also
WebContainer class