If you were in need of retracting the flaps, you would make a note of your power and pitch setting for the desired stage of flight you wish to be at with lesser or no flaps from your ‘Performance Inflight’ source (company), and then, as per FCTM, set said power and pitch, and change configuration.