<?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 Efficient method for deleting a large amount of data in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/Efficient-method-for-deleting-a-large-amount-of-data/m-p/122426#M26274</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We're running OnTap 8.2.1. I was looking for a system side command I could use to browse cifs shares and remove a particular&amp;nbsp;folder under a root share as opposed to navigating the share from Windows, but I haven't seen anything. I'm curious if anyone here has a tip/trick for removing overly complex, deep/large folder structures without just removing the entire share?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far it's taking&amp;nbsp;20+ minutes to discover the folders content from a windows client before&amp;nbsp;the system&amp;nbsp;starts to delete anything.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The structure looks similar to the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Groups (top level folder/share)&lt;/P&gt;&lt;P&gt;-Group1 (1TB, 250k+ files)&lt;/P&gt;&lt;P&gt;-Group2 (2TB 1M+files)&lt;/P&gt;&lt;P&gt;-Group3 ( 1.8TB 500k+ files)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The "group 2" folder would be the one I'd like to remove.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate any assistance you could provide.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Brian&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Aug 2016 18:45:40 GMT</pubDate>
    <dc:creator>bktrimble84</dc:creator>
    <dc:date>2016-08-18T18:45:40Z</dc:date>
    <item>
      <title>Efficient method for deleting a large amount of data</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Efficient-method-for-deleting-a-large-amount-of-data/m-p/122426#M26274</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We're running OnTap 8.2.1. I was looking for a system side command I could use to browse cifs shares and remove a particular&amp;nbsp;folder under a root share as opposed to navigating the share from Windows, but I haven't seen anything. I'm curious if anyone here has a tip/trick for removing overly complex, deep/large folder structures without just removing the entire share?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far it's taking&amp;nbsp;20+ minutes to discover the folders content from a windows client before&amp;nbsp;the system&amp;nbsp;starts to delete anything.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The structure looks similar to the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Groups (top level folder/share)&lt;/P&gt;&lt;P&gt;-Group1 (1TB, 250k+ files)&lt;/P&gt;&lt;P&gt;-Group2 (2TB 1M+files)&lt;/P&gt;&lt;P&gt;-Group3 ( 1.8TB 500k+ files)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The "group 2" folder would be the one I'd like to remove.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate any assistance you could provide.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Brian&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2016 18:45:40 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Efficient-method-for-deleting-a-large-amount-of-data/m-p/122426#M26274</guid>
      <dc:creator>bktrimble84</dc:creator>
      <dc:date>2016-08-18T18:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Efficient method for deleting a large amount of data</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Efficient-method-for-deleting-a-large-amount-of-data/m-p/122436#M26278</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Refer KB&amp;nbsp;&lt;A href="https://kb.netapp.com/support/index?page=content&amp;amp;id=2017624" target="_self"&gt;2017624&lt;/A&gt; BUG 599967:CIFS or NFS operations are delayed due to concurrent deletions of many large files&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2016 08:47:52 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Efficient-method-for-deleting-a-large-amount-of-data/m-p/122436#M26278</guid>
      <dc:creator>Sahana</dc:creator>
      <dc:date>2016-08-19T08:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Efficient method for deleting a large amount of data</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Efficient-method-for-deleting-a-large-amount-of-data/m-p/139982#M30935</link>
      <description>&lt;P&gt;Hi Brian,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do *lots* of CIFS / NAS Folder and File re-structuring, and for *years* have been wanting a controller-side feature for deleting QTREE + data or deleting volume subfolder(s) + data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a 'QTREE delete' command available (I think only a GUI feature) but it only deletes *empty* QTREEs - you have to have previously used a Windows/Linux host to delete the actual data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From your question notes, it looks like you are trying to use Windows Explorer/GUI to delete large folders (+subfolders and files). The drawback of which is that Win Explorer has to enumerate the data before starting the actual delete process.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead, you can use the 'RMDIR' command from the Windows Command line. It skips the enumeration process and starts deleting files and folders immediately.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;eg to delete a 2TB size second-level folder&amp;nbsp;(and all subfolders and data) under a top level network share called 'Projects' :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;c:&amp;gt;RMDIR /S /Q \\server\Projects\second-level&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/S = (run recursively on all subfolders, files) /Q = (quiet mode, disable confirmations)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thats it - the command will traverse the subtree and delete the data.&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 10:03:33 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Efficient-method-for-deleting-a-large-amount-of-data/m-p/139982#M30935</guid>
      <dc:creator>KieranMcKenna</dc:creator>
      <dc:date>2018-05-02T10:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Efficient method for deleting a large amount of data</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Efficient-method-for-deleting-a-large-amount-of-data/m-p/143124#M31751</link>
      <description>&lt;P&gt;Powershell has a command to delete *whole* qtrees from C-mode controllers&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;remove-ncqtree&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It wil need the -FOrce to delete a qtree that is not empty&lt;/P&gt;
&lt;P&gt;EG:&lt;/P&gt;
&lt;P&gt;Remove-NcQtree -VserverContext&amp;nbsp;myvserver&amp;nbsp;-Volume&amp;nbsp;myvol -Qtree&amp;nbsp;myqtree -Force&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To remove subdirectories, you have to delete all files therein first...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Read-NcDirectory, then interate into any sub directories and remove-ncfile/remove-ncdirectory&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just having problems at the moment working out what permissions I need to give a user/role to delete files!&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Stuart&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2018 04:54:57 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Efficient-method-for-deleting-a-large-amount-of-data/m-p/143124#M31751</guid>
      <dc:creator>OZWALKERZ</dc:creator>
      <dc:date>2018-10-02T04:54:57Z</dc:date>
    </item>
  </channel>
</rss>

