To remove the excess fluid, a device called Ventriculoperitoneal shunt is used. This device diverts the fluid from the brain and restores normal flow.