How to restore the NVR to factory setting?

Please get into main menu> advanced>restore

Click restore and select all, the NVR will restore to default.