Night weaning 2.5 year old

How did you do it?