<?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>question Re: Can I delete multiple files from hdfs? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Can-I-delete-multiple-files-from-hdfs/m-p/289664#M214398</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have similar scenario as you had. Did you run script to all node to delete files parallel with different parameters ?&lt;BR /&gt;I have created script that first collect all file name and add into array then loop through deleting those files, since it is deleting one by one is there any way to delete all at once ?&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Feb 2020 21:18:38 GMT</pubDate>
    <dc:creator>ppatel</dc:creator>
    <dc:date>2020-02-12T21:18:38Z</dc:date>
    <item>
      <title>Can I delete multiple files from hdfs?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-I-delete-multiple-files-from-hdfs/m-p/236354#M198167</link>
      <description>&lt;P&gt;Currently we are seeing our HDFS DFS directory is getting filled up and we have to remove the data at faster rate. &lt;/P&gt;&lt;P&gt;We currently have 12 datanodes and 4 masternodes 1 edgenode. Can I delete the files from HDFS from masternodes and edgenodes at once? I have created a script on edgenode which deletes the HDFS files but speed is really slow.&lt;/P&gt;&lt;P&gt;How can I delete multiple files at a time ? Can I place that script on multiple server and delete the files?&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2019 08:56:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-I-delete-multiple-files-from-hdfs/m-p/236354#M198167</guid>
      <dc:creator>madhura2688</dc:creator>
      <dc:date>2019-03-22T08:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Can I delete multiple files from hdfs?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-I-delete-multiple-files-from-hdfs/m-p/236355#M198168</link>
      <description>&lt;P&gt;Hello, Madhura Mhatre!&lt;/P&gt;&lt;P&gt;You can try to use tHDFSList to iterate each file that you want to delete.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;tHDFSList--iterate--tHDFSDelete&lt;/P&gt;&lt;P&gt;There is a global variable that stores the current file path on tHDFSList:&lt;/P&gt;&lt;PRE&gt;(String)globalMap.get("tHDFSList_1_CURRENT_FILEPATH")&lt;/PRE&gt;&lt;P&gt;Set the file path of tHDFSdDelete with this variable.&lt;/P&gt;&lt;P&gt;Also please check this article on &lt;A rel="noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer" href="https://stackoverflow.com/questions/38797473/how-to-remove-files-inside-the-hadoop-directory-at-once" target="_blank"&gt;StackOverflow&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This &lt;A rel="noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer" href="https://www.linkedin.com/learning/hadoop-for-data-science-tips-tricks-techniques/remove-files-in-hdfs" target="_blank"&gt;video&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I hope it helps!&lt;/P&gt;</description>
      <pubDate>Sat, 23 Mar 2019 07:55:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-I-delete-multiple-files-from-hdfs/m-p/236355#M198168</guid>
      <dc:creator>lomacka_oleg</dc:creator>
      <dc:date>2019-03-23T07:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can I delete multiple files from hdfs?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-I-delete-multiple-files-from-hdfs/m-p/289664#M214398</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have similar scenario as you had. Did you run script to all node to delete files parallel with different parameters ?&lt;BR /&gt;I have created script that first collect all file name and add into array then loop through deleting those files, since it is deleting one by one is there any way to delete all at once ?&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 21:18:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-I-delete-multiple-files-from-hdfs/m-p/289664#M214398</guid>
      <dc:creator>ppatel</dc:creator>
      <dc:date>2020-02-12T21:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Can I delete multiple files from hdfs?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Can-I-delete-multiple-files-from-hdfs/m-p/289761#M214448</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/74164"&gt;@ppatel&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;As this thread is older and was marked 'Solved' in March of 2019 you would have a better chance of receiving a resolution by &lt;A href="https://community.cloudera.com/t5/forums/postpage/board-id/Questions" target="_blank" rel="noopener"&gt;starting a new thread&lt;/A&gt;. This will also provide the opportunity to provide details about your script that could aid others in providing a more relevant answer to your question.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 23:37:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Can-I-delete-multiple-files-from-hdfs/m-p/289761#M214448</guid>
      <dc:creator>ask_bill_brooks</dc:creator>
      <dc:date>2020-02-13T23:37:43Z</dc:date>
    </item>
  </channel>
</rss>

