public GameObject targetParent; // Drag parent in the inspector // Destory first child object Destroy(targetParent.transform.GetChild(0).gameObject);