Revert "Revert "Added support for only removing children""

This reverts commit 98208470a9f69a3dc717a904ae8ce9b686def2bd.