<?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 Delete File inside AWS S3 bucket path in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Delete-File-inside-AWS-S3-bucket-path/m-p/345389#M234507</link>
    <description>&lt;P&gt;Hi, I 'am trying to delete all the files that there are into the path from S3 Bucket. For example I have Buketname/Input_file and on this I have:&lt;BR /&gt;File1.txt&lt;BR /&gt;File2.txt&lt;BR /&gt;File2.txt&lt;BR /&gt;....&lt;BR /&gt;I need to delete all the files but not the bucket.&lt;BR /&gt;If I conect &lt;STRONG&gt;ListS3&lt;/STRONG&gt; process to &lt;STRONG&gt;DeleteS3Objet&lt;/STRONG&gt; process I can delete all the files but it delete the path too.&lt;BR /&gt;If I connect &lt;STRONG&gt;ListS3&lt;/STRONG&gt; process --&amp;gt; &lt;STRONG&gt;FetchS3Object&lt;/STRONG&gt;--&amp;gt;&lt;STRONG&gt;RouteonAttribute&lt;/STRONG&gt; (to obtain the file name and discard the path that came as file name too using matched and not matched) --&amp;gt;&lt;STRONG&gt;DeleteS3Object&lt;/STRONG&gt; to do the delete action. All the process work well and I don't have error but the files is not delete.&lt;BR /&gt;Could somebody tell me, how can resolve this issue?&lt;BR /&gt;There are some topic that talk about how delete the files in s3 but without delete the path?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jun 2022 14:44:58 GMT</pubDate>
    <dc:creator>Iltano</dc:creator>
    <dc:date>2022-06-10T14:44:58Z</dc:date>
    <item>
      <title>Delete File inside AWS S3 bucket path</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Delete-File-inside-AWS-S3-bucket-path/m-p/345389#M234507</link>
      <description>&lt;P&gt;Hi, I 'am trying to delete all the files that there are into the path from S3 Bucket. For example I have Buketname/Input_file and on this I have:&lt;BR /&gt;File1.txt&lt;BR /&gt;File2.txt&lt;BR /&gt;File2.txt&lt;BR /&gt;....&lt;BR /&gt;I need to delete all the files but not the bucket.&lt;BR /&gt;If I conect &lt;STRONG&gt;ListS3&lt;/STRONG&gt; process to &lt;STRONG&gt;DeleteS3Objet&lt;/STRONG&gt; process I can delete all the files but it delete the path too.&lt;BR /&gt;If I connect &lt;STRONG&gt;ListS3&lt;/STRONG&gt; process --&amp;gt; &lt;STRONG&gt;FetchS3Object&lt;/STRONG&gt;--&amp;gt;&lt;STRONG&gt;RouteonAttribute&lt;/STRONG&gt; (to obtain the file name and discard the path that came as file name too using matched and not matched) --&amp;gt;&lt;STRONG&gt;DeleteS3Object&lt;/STRONG&gt; to do the delete action. All the process work well and I don't have error but the files is not delete.&lt;BR /&gt;Could somebody tell me, how can resolve this issue?&lt;BR /&gt;There are some topic that talk about how delete the files in s3 but without delete the path?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 14:44:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Delete-File-inside-AWS-S3-bucket-path/m-p/345389#M234507</guid>
      <dc:creator>Iltano</dc:creator>
      <dc:date>2022-06-10T14:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Delete File inside AWS S3 bucket path</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Delete-File-inside-AWS-S3-bucket-path/m-p/345630#M234590</link>
      <description>&lt;P&gt;I was able to solve this problem.&lt;BR /&gt;I will sahre the way to delete the files that there are inside the specific path.&lt;BR /&gt;First I list the files as show in the first picture.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Delete S3 1.PNG" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/34584iEB5942C475313D47/image-size/large?v=v2&amp;amp;px=999" role="button" title="Delete S3 1.PNG" alt="Delete S3 1.PNG" /&gt;&lt;/span&gt;&lt;BR /&gt;I had to set the bucket name, delimiter and prefix as shown in the second and third images.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Delete S3 2.PNG" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/34585i69585A6B81685D98/image-size/large?v=v2&amp;amp;px=999" role="button" title="Delete S3 2.PNG" alt="Delete S3 2.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Delete S3 3.PNG" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/34586iFA2FDEBD971F74CC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Delete S3 3.PNG" alt="Delete S3 3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The prefix is used to filter the files from the path.&lt;BR /&gt;(In this case&lt;BR /&gt;Buketname/To_Proccess/Input/&lt;BR /&gt;File1.txt&lt;BR /&gt;File2.txt&lt;BR /&gt;File3.txt&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;The delimeter is '/'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After that I use&amp;nbsp;RouteOnAttribute and set&amp;nbsp;it to filter the '/' as is showed in the picture:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Delete S3 4.PNG" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/34587i2865D1F88BE0AE47/image-size/large?v=v2&amp;amp;px=999" role="button" title="Delete S3 4.PNG" alt="Delete S3 4.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;And the last step is configure DeleteS3Object process where only have to set the name of the bucket. In my case 'Bucketname'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Delete S3 5.PNG" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/34588i817DD4ABA163593D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Delete S3 5.PNG" alt="Delete S3 5.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All these proccess delete File1.txt, File2.txt, File3.txt but not delete the path '/To_Proccess/Input/' inside the bucket.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 22:01:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Delete-File-inside-AWS-S3-bucket-path/m-p/345630#M234590</guid>
      <dc:creator>Iltano</dc:creator>
      <dc:date>2022-06-14T22:01:47Z</dc:date>
    </item>
  </channel>
</rss>

