Yes, resetting your iphone to factory settings will delete all of your data, including contacts, photos, and apps. Be sure to back up your iphone before resetting to avoid losing important data.