While the rotor is off the hub, make sure both sides of the flange are thoroughly clean & flat to prevent warping the rotors. It doesn't take much to ruin them.
For drums, only the outboard surface of the axle flange needs to be cleaned. But both sides of the drum must be cleaned.