Pexidartinib (PLX-3397, SelleckChem, S7818), a CSF1R inhibitor, was administered ad libitum to P21 wildtype C57Bl/6 mice at 290 mg/kg in AIN-76A Rodent Diet (Research Diets Inc., D10001) for 7 days to eliminate microglia44. At this stage flow cytometry showed around 95% decrease in microglia cell number (Extended Data Fig. 1). These microglia-depleted animals were used for optic nerve crush (see below) and neuroinflammatory investigation (with i.p. injection of 5 mg/kg LPS).