<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Remove-NaDirectory is not working on Dierctories that are not empty. in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Remove-NaDirectory-is-not-working-on-Dierctories-that-are-not-empty/m-p/27748#M1251</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes that worked like a champ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the assistance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jan 2013 16:06:48 GMT</pubDate>
    <dc:creator>jjd003166</dc:creator>
    <dc:date>2013-01-08T16:06:48Z</dc:date>
    <item>
      <title>Remove-NaDirectory is not working on Dierctories that are not empty.</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Remove-NaDirectory-is-not-working-on-Dierctories-that-are-not-empty/m-p/27735#M1249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; font-family: Lucida Console;"&gt;Remove-NaCifsShare &lt;/SPAN&gt;&lt;SPAN style="color: #8a2be2; font-size: 8pt; font-family: Lucida Console;"&gt;PSTEST_1st&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; font-family: Lucida Console;"&gt;Remove-NaDirectory&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Lucida Console;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8a2be2; font-size: 8pt; font-family: Lucida Console;"&gt;/vol/vfiler5_data/PSTEST_1st&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 06:12:33 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Remove-NaDirectory-is-not-working-on-Dierctories-that-are-not-empty/m-p/27735#M1249</guid>
      <dc:creator>jjd003166</dc:creator>
      <dc:date>2025-06-05T06:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Remove-NaDirectory is not working on Dierctories that are not empty.</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Remove-NaDirectory-is-not-working-on-Dierctories-that-are-not-empty/m-p/27740#M1250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would this help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here i have a cifsshare called testshare which has a bunch of directories in it and also some directories within those directories itself&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://community.netapp.com/legacyfs/online/18274_read-nadirectory.png" style="height: 266px; width: 640.1069518716578px;" width="640" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now using Get-ChildItem and Remove-Item i recursively delete all the folders present in the share.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get-ChildItem //$ControllerName/$Sharename -Recurse | ForEach-Object { Remove-Item -Recurse $_.fullname -force }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if do a Read-NaDirectory i see that all the directories and sub directories get deleted recursively indeed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://community.netapp.com/legacyfs/online/18275_read-nadirectory1.png" style="width: 641px; height: 112px;" width="641" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 11:40:35 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Remove-NaDirectory-is-not-working-on-Dierctories-that-are-not-empty/m-p/27740#M1250</guid>
      <dc:creator>vinith</dc:creator>
      <dc:date>2013-01-08T11:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Remove-NaDirectory is not working on Dierctories that are not empty.</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Remove-NaDirectory-is-not-working-on-Dierctories-that-are-not-empty/m-p/27748#M1251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes that worked like a champ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the assistance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 16:06:48 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Remove-NaDirectory-is-not-working-on-Dierctories-that-are-not-empty/m-p/27748#M1251</guid>
      <dc:creator>jjd003166</dc:creator>
      <dc:date>2013-01-08T16:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Remove-NaDirectory is not working on Dierctories that are not empty.</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Remove-NaDirectory-is-not-working-on-Dierctories-that-are-not-empty/m-p/27752#M1252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad i was able to help you out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 16:16:39 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Remove-NaDirectory-is-not-working-on-Dierctories-that-are-not-empty/m-p/27752#M1252</guid>
      <dc:creator>vinith</dc:creator>
      <dc:date>2013-01-08T16:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Remove-NaDirectory is not working on Dierctories that are not empty.</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Remove-NaDirectory-is-not-working-on-Dierctories-that-are-not-empty/m-p/27757#M1253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp; Hello Vinith,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 - &lt;/P&gt;&lt;P&gt;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(..&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt;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...)&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt;I came across this document which seems to reference the issue [&lt;/SPAN&gt;TR-3483 "Thin Provisioning in a NetApp SAN or IP SAN Enterprise Environment" &lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.netapp.com/us/library/technical-reports/tr-3483.html" target="_blank"&gt;http://www.netapp.com/us/library/technical-reports/tr-3483.html&lt;/A&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt;] &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt;- my question is this - how what is the best way to prevent &amp;lt;autogrow-delete&amp;gt; while doing a fairly routine task of storage administration?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt;Thanks for you time and keep the great scipts coming!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt;Peter &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Apr 2013 05:50:03 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Remove-NaDirectory-is-not-working-on-Dierctories-that-are-not-empty/m-p/27757#M1253</guid>
      <dc:creator>BISHTECHIT</dc:creator>
      <dc:date>2013-04-14T05:50:03Z</dc:date>
    </item>
  </channel>
</rss>

