The glymphatic system washing your brain clean is not a metaphor, and it does its most thorough work while you rest, which is the case made in this piece on napping as neurological maintenance.