Can I use forloop to remove all children of wrapbox?

I knew clear, but why I can’t use forloop to remove all the children of my wrapbox?