The NetApp Community is moving to a new platform and is in Read-Only mode. Click to learn more.
Stay connected during the transition - Join our Discord community today.

ONTAP Hardware

Volume delete script

Spin1phd
3,429 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
3,415 Views

Hello,

 

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

 

Hope you find it useful.

 

Cheers,

Grant.

Public