If you don't mind toasting everything, you can log in on the console and do
% cd /data
% cp factory-v1.db freenas-v1.db
% reboot
which resets you to "factory" defaults - for mostly everything.
There's probably a more elegant way to twiddle with things in the database but I've yet to have a reason to discover what it is.