godot delete all child nodes code example
Example 1: clear all children godot
static func delete_children(node):
for n in node.get_children():
node.remove_child(n)
n.queue_free()
Example 2: godot delete all child nodes
static func _delete_children(node):
for n in node.get_children():
node.remove_child(n)
n.queue_free()