To return your phone to out of the box condition you need to do a hard reset (assuming that you have not flashed a new ROM yet).
There are two way to do a hard reset.
Via the hardware
Code:
Hold down the end key till the device powers off, then hold volume down, send
and end till you see blue text on a white background. Follow hard reset prompts.
Via the software (Start-Settings-System-Clear Storage)
All programs or hacks can be undone. After a hard reset the phone clears any programs or hacks that you have done to it