Restore your Apple device to its factory settings
You can reinstall the software originally on your device and restore it to its factory settings. You might need to do this if you’re having problems with the device (for example, if it freezes or crashes frequently) or if you’re getting ready to sell it or give it away.
Important: Restoring a device to its factory settings deletes all your information and settings. While restoring, you can choose to back up your device on your Windows computer. You can use this backup to restore your information and settings on the device.
Connect your Apple device to your Windows computer using a USB or USB-C cable.
In the Apple Devices app on your Windows computer, select the device in the sidebar.
Select General in the sidebar.
Select “Restore [device]”, then follow the onscreen instructions.