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 stops responding frequently) or if you’re getting ready to sell 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 device. You can use this backup to restore your information and settings on the device.
Connect your Apple device to your Windows device using a USB or USB-C cable.
In the Apple Devices app on your Windows device, select the device in the sidebar.
Select General in the sidebar.
Select “Restore [device],” then follow the onscreen instructions.