I'm really new to the NetApp administration, but not so new to Powershell. I'm trying to find a way to remove a "Root" directory without needing to delete all of the Child directories first. I wrote a minor script to remove the "Share" and to remove the directory (see below). However if the directory has other directories in it the script fails. In standard Powershell there is the -f which will "force" it to delete the folder and all of the folders/files under it. How can I do it with the NetApp powershell commands?
I have been following you and - have put to use - many of your scripts and suggestions - so I am hoping you can help me with a bit of learning -
I was tasked with the removal of a 1TB qTree - I come across your script when I needed to learn how to remove existing directories - but then was cautioned about what might happen if I deleted all the data at once(..it rolls into the snapshot area. The aggregate does not have enough space to grow the volume and snapshot area to allow for a massive delete...) I came across this document which seems to reference the issue [TR-3483 "Thin Provisioning in a NetApp SAN or IP SAN Enterprise Environment"