To replace, unsolder the leads of the damaged diode and carefully remove it from the plastic holder, avoiding sharp blows to the rectifier unit. Then clean the epoxy residue from the diode installation site, install and solder a new diode.
Solder the output of the diode with a color mark to a common bus. After soldering, glue the body of the diode to the holder with epoxy.