Restoring iOS software deletes all data and content (songs, videos, music, contacts, photos and calendar info) from the device.
Navigate to Use iTunes to restore your iPhone, iPad, or iPod to factory settings then follow the step-by-step instructions.