Camillo> Via console, what is the quickest, easiest and safest way to Camillo> destroy an aggregate and CIFS.
Camillo> Basically the best way to bring a FAS2040 to its factory condition.
You're asking two seperate though related questions here. Returning a system to factory is simple, just reboot the filer, break into the maintenance mode and select the option to zero disks and re-install the OS.
If you just want to delete a volume, and it's containing aggregate, it's a bit more involved, and if you have other volumes in the aggregate, you won't be able to delete it other.
vol offline <vol> vol destroy <vol> aggr offline <aggr> aggr destroy <aggr>
You might have to do vol restrict and aggr restrict as well, can't remember and I'm not going to test right now.
John