fastest way to destroy all gameobjects of a parent unity code example
Example 1: destroy all objects under parent unity c#
foreach (Transform child in TextHolder.transform) { GameObject.Destroy(child.gameObject); }
Example 2: how to destroy parent gameobject unity
Destroy(transform.parent.gameObject);