How can you destroy attached actors when parent is destroyed?

This answer is correct. You forgot the square bracket operator. Temp[i]->Destroy();