Programmer's Guide > Interfaces > Component interface > removeChild method
  
removeChild method
Removes the child component indicated by oldChild from the list of children, and returns it.
removeChild(oldChild )
Parameters
ComponentoldChild
The component to remove.
Returns
Component. The component being removed.
Throws
WindowException
NOT_FOUND_ERR: Raised if oldChild is not a child of this component.