Go to Settings > All (tab) > Reset > Factory data reset.