Removes an element from DOM in a safe way, cleaning all its controls (including descendants).
removeElement
Element to remove
Optional
Whether to hide the element's parentNode if it contains no additional children.
Removes an element from DOM in a safe way, cleaning all its controls (including descendants).
Method
removeElement