destroy

fun destroy()

Removes @root and its children from the tree, freeing any memory allocated.