godot delete a node from script code example Example: godot destroy node Self destroy: queue_free() get_parent().remove_child(self)