On one of our AA excursions, we had an aircraft go u/s and the replacement came from a hangar at another airport (according to some tracking). The first thing that happened when it docked at the gate was a swarm of cleaners going on board.
So cleaning during maintenace/hangar time may not be universal.