1. Switch on the phone. 2. Type in wrong code five times in a row. 3. A list of options should appear. From it, select Reset button. 5. Now select Erase Everything. 6. Ta-damm, done.