After dry rides (bike dusty) - wipe down fork, shock and dropper stanchions, dry brush cassette, jockey wheels and chain ring, dry rag chain, cassette, jockety wheels and chain ring. Lube chain & wipe off excess.
After wet/muddy rides - garden hose off thick dirt, avoiding anywhere with seals fitted, spray muc-off all over, brush in muc-off and rinse off, dry everywhere with a dry towel, then same as dry rides, plus general spray lube for gear cable, mech pivots and spray/wipe off silicone spray on frame, fork, shock and dropper stanchions. Spray/wipe Isopropyl Alchohol on brake discs.
I'm a bit paranoid about water in the motor crank seals as I've had a motor fail and seen some of the strip down videos which identify this as a weakness in Brose motors. Never had problems with water in electrical connections though (these should be re-sealed with electrical contact grease every year).