Okay, this is where PPRuNe starts to confuse people. Regarding the retracting of flaps, your QRH might say the following:
FOR GO AROUND IF SLATS FAULT:
FOR CIRCUIT:
MAINTAIN SLATS/FLAPS CONFIGURATION Recommended speed: MAX SPEED -10 kt
FOR DIVERSION
SELECT CLEAN CONFIGURATION
Recommended flaps retraction speed: between MAX SPEED -10 kt and MAX SPEED.
Recommended diversion speed: MAX SPEED -10 kt.
IF FLAPS FAULT: FOR CIRCUIT:
MAINTAIN SLATS/FLAPS CONFIGURATION Recommended speed: MAX SPEED -10 kt FOR DIVERSION:
If FLAPS jammed at 0
SELECT CLEAN CONFIGURATION
Note: Recommended speed for slats retraction is between MAX SPEED -10 kt and MAX SPEED of actual slat/flap position.
So do not just start retracting flaps or slats, mind the speed limits!
Take it all one step at a time. Read your QRH.