If you heat the wire and pad up to remove it, most of the solder will come with it.
You don't need to work to get it off the wire, just cut the gooped part off and make a fresh end if you have room.
The solder left on the board will probably be ok to attach the wire too. Add flux, put a...