ONTAP Hardware

Volume delete script

Spin1phd
2,578 Views

All,

 

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

 

 

1 REPLY 1

sgrant
2,564 Views

Hello,

 

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

 

Hope you find it useful.

 

Cheers,

Grant.

Public