IOS

How To Reset
http://support.apple.com/kb/ht2110

http://ipod.about.com/od/iphonetroubleshooting/ht/Factory-Reset-Iphone-4.htm

Settings > General > Reset > Erase All Content and Settings