Ok you see now we can give you a hand !
The best way is to use a hot air station .. But i assume that you don't have access to it .Otherwise you wouldn't be asking Now tere is another way .Use very small size Solder braid .. You can buy it almost anywhere !
Depending of what you want to do : Do yu need to reuse the memory later or not?
if the component is to be reused then do this
1)with the solder braid absorb all the solder excess .You should be able to get all leads very clean .. be carefull don't apply yo much heat
2) try to adapt a wide flat solder tip to your iron in order to apply uniformly heat to all leads .
3) work first in on one side . pry the memory with a knife ,just enough to lift it a little bit
4) do the same at the other side .! NEVER RUSH.
do this with a lot of PACIENSE!
Finally if the memory is presumly bad and is going to be repleced . Well with a small rotating grinder or even a fine file or knife CUT ALL THE LEADS .. from the plastic casing side of the component . Once the black plastic component REMOVED .. just with the iron and some solder wick clean the leads that remained attached ..
This is very simple .. ONCE again don't apply TOO MUCH HEAT ..Just the necessary !
Wash and clean with water in both cases .. leave it to dry .
To Solder back is better to use SOLDER paste . the type that needs refrigeration..
Apply a little bit pf paste with a painting BRUSH (the finest brush you can get at drawing artist supply shops ..!) to every lead . And with a fine tip iron just apply heat to every lead INDIVIDUALLY !
wipe out the excess with solder braid .. But DON"T SUCK UP all the solder .. just bearly excert some presure !
Listen this is an art that only with experience you will be good at it
The trick is the amount of heat .. Try to do it in a computer board before you tackle the real thing
Good luck!