Proper way of removing all child nodes of a parent node?

Hi is there a proper way or a more optimized way of removing all child nodes of a parent node?
cuz now im just thinking looping through the child nodes them remove them simultaneously

removeAllChildren()

2 Likes