//put in any gameobject having children and enter playmode
while (transform.childCount > 0)
{
DestroyImmediate(transform.GetChild(0).gameObject);
}
//Destroys the first child of the Parent variable
Destroy(Parent.transform.GetChild(0).gameObject);