2. Switch off your phone.
3. Press and hold the Power button for about 3 seconds then press and hold Volume Down with Power button for another 10 seconds.Then release only Power button.
4.When you are alerted by iTunes saying that it has detected a device in Recovery Mode, then release Volume down button.
APPLE iPhone X FACTORY RESET / Bypass Passcode & Face ID
APPLE iPhone X HARD RESET / Wipe Data / Restore iOS
Remove Passcode in iPhone X - Factory Reset / Restore iOS
Hard Reset will erase all of your data
All described operations you are doing at your own risk.