Use a simpler, faster approach in removeChildren

Closes #1376