Practice on something else if it’s your first time.
You can clip all four legs if there’s room to do so, and then use pliars on the leg bits sticking up while heating the solder so once it melts the bits of each leg will come loose. As noted, make sure you note orientation of rectifier before clipping it. If you have solder Wick, it works decent to clear the holes as well for the new rectifier.