The phone will reboot to the Recovery screen. Navigate to Wipe data/factory reset using the physical buttons to complete the hard reset. Common Nokia Reset Codes (Dialer)
If you cannot use CMD because the phone is locked or unresponsive, use the hardware button "tool" combinations: the device completely. Connect to a power source (PC or charger). nokia hard reset tool cmd top
Connect to PC and open CMD as admin.