How To Reset & Restore your Apple iPhone X – Factory Reset
Use a computer to wipe all content and settings from iPhone You can use a Mac or Windows PC to erase all data and settings from your iPhone, restore iPhone to factory settings, and install the latest version of iOS.