How to restore the DVR to factory setting?

Please get into main menu> advanced>restore

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