How can you destroy attached actors when parent is destroyed?

Sorry…I actually had the line Temp[i]->Destroy(). This was a hasty post where I had deleted my old code, then quickly rewritten for this post. The main problem was that at the time this function is called, the “temp” array is empty. It seems children are detached by the time BeginDestroy is called.