How to remove keylogger from iPhone and reset to factory release?

How to remove keylogger from iPhone and reset to factory release?

You won't have that on your iphone unless you jailbroke it.

Just doing a restore in iTunes will format the phone and put it to apple factory condition. But before doing that you need to make sure she's using the phone on the carrier which it's locked to. Also keep in mind that an iphone with older basebands have a better resale price than phones with new basebands and whenever you do a factory restore you update the phone to the latest baseband.