Hisham (may Allah have mercy on him) narrates from al-Hasan al-Basri (may Allah have mercy on him) that removing the impurity from the child means shaving his head.