Factory hard reset iphone 5 5S 5C
Hard reset iphone 4
A: How to Erase and Factory Reset an iPhone 4S / 4 / 3GS / 3G - How to Use My iPhone Tutorial 3
Hard Reset will erase all of your data
All described operations you are doing at your own risk.