When an Xbase Part has children, this method implicitly calls the :destroy() method of each Xbase Part contained in :childList()(see :childList() in XbpPartHandler()).
Method XbpWindow():destroy() Foundation
Releases the system resources of the object.
:destroy() --> self
This method returns the object executing the method (self).
The method :destroy() is part of the life cycle of an Xbase Part and releases the system resources requested using the method :create(). The Xbase Part becomes non-operational after this method has been called. However, the object remains in existence and can later request system resources again using :create().
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.