only delete children if node is a parent