Move in a workspace with ventilation or use a fume extractor. Once in an appropriate workspace, desolder the old capacitors. Heat one leg up and remove the capacitor. Do this for both legs.
After removing the capacitors, clean up the old solder. To do this, take a desoldering braid and clean up the solder from the pads. The desoldering braid must be lifted up with your soldering iron.