Move to a workspace with ventilation or use a fume extractor. Once in an appropriate workspace, desolder the old capacitors. Heat up each leg and remove it.
After removing the capacitors, clean up the old solder with a desoldering braid. Lift it with the iron when removing it.