You will need to boot the device into safe mode and default it. Unless you have a saved config file somewhere and you know the password for that, you are starting from scratch.

https://www.fuzeqna.com/sonicwallkb/consumer/kbdetail.asp?kbid=8010