clear

fun clear()(source)

Removes every descendant of this node. Afterwards children is empty and all former descendants are detached (their parent is null). This node itself stays attached to its own parent.