Endocytic pathways downregulate the L1-type cell adhesion molecule neuroglian to promote dendrite pruning in Drosophila.