Volume delete script



I am building scripts to run against my filers.


After migrations I am looking to build a script that will destroy the volumes.  I use the following to offline them and per processes then destroy them 24hrs later.


                       for i in 'cat /home/user/file.txt'; do ssh filer vol offline $i; done


Now I have this so far but when destroying the volume confirmation to destroy is asked for each volume.  is there a setting to turn that off.  the Filers are 7-mode.


                       for i in 'cat /home/user/file.txt'; do ssh filer vol destroy $i; done



Re: Volume delete script



You can use the "-f" flag to destroy a volume without prompting.


Hope you find it useful.