<?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: Will Nifi delete a file from SFTP ? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Will-Nifi-delete-a-file-from-SFTP/m-p/370279#M240682</link>
    <description>&lt;P&gt;Thank you Matt, I see its set to None.&lt;/P&gt;</description>
    <pubDate>Mon, 08 May 2023 17:43:30 GMT</pubDate>
    <dc:creator>RajiBM</dc:creator>
    <dc:date>2023-05-08T17:43:30Z</dc:date>
    <item>
      <title>Will Nifi delete a file from SFTP ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Will-Nifi-delete-a-file-from-SFTP/m-p/370275#M240678</link>
      <description>&lt;P&gt;We are using ListSFTP and FetchSFTP to get the files from a vendor SFTP location. There are no explicit delete commands from our end to delete the file . However the file gets deleted and the vendor is pushing it on us saying we are having some process to delete the files . Will FetchSFTP delete the files after its downloaded from the Vendor SFTP server ?&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="http://community.cloudera.com/t5/image/serverpage/image-id/39862iF4BD290B2D9229F8/image-size/large?v=v2&amp;amp;px=999" border="0" alt="Nifi Process.JPG" title="Nifi Process.JPG" /&gt;</description>
      <pubDate>Mon, 08 May 2023 16:59:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Will-Nifi-delete-a-file-from-SFTP/m-p/370275#M240678</guid>
      <dc:creator>RajiBM</dc:creator>
      <dc:date>2023-05-08T16:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Will Nifi delete a file from SFTP ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Will-Nifi-delete-a-file-from-SFTP/m-p/370276#M240679</link>
      <description>&lt;P&gt;What is the "Completion Strategy" property under FetchSFTP is set to? If its set to the default "None" then the file should not be deleted or moved. See the Completion Strategy options under:&lt;/P&gt;&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.20.0/org.apache.nifi.processors.standard.FetchSFTP/index.html" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.20.0/org.apache.nifi.processors.standard.FetchSFTP/index.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If that helps please &lt;STRONG&gt;accept&lt;/STRONG&gt; solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 17:27:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Will-Nifi-delete-a-file-from-SFTP/m-p/370276#M240679</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2023-05-08T17:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Will Nifi delete a file from SFTP ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Will-Nifi-delete-a-file-from-SFTP/m-p/370277#M240680</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/104983"&gt;@RajiBM&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;The NiFi FetchSFTP processor has several "Completion Strategy" options:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;None (default) &amp;lt;- leaves file as-is on SFTP server after reading content&lt;/LI&gt;&lt;LI&gt;Move File &amp;lt;- Moves file after successful read to directory specified in the "Move Destination Directory" property.&lt;/LI&gt;&lt;LI&gt;Delete File &amp;lt;- Deletes original file from SFTP server after success read of content.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;So as long as your FetchSFTP is configured with the default "None" Completion Strategy, the File will remain in original source location on the target SFTP server.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic"&gt;If you found that the provided solution(s) assisted you with your query, please take a moment to login and click&lt;/FONT&gt;&amp;nbsp;&lt;FONT face="arial black,avant garde" color="#FF0000"&gt;Accept as Solution&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;below each response that helped.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;Matt&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 17:27:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Will-Nifi-delete-a-file-from-SFTP/m-p/370277#M240680</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2023-05-08T17:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Will Nifi delete a file from SFTP ?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Will-Nifi-delete-a-file-from-SFTP/m-p/370279#M240682</link>
      <description>&lt;P&gt;Thank you Matt, I see its set to None.&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 17:43:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Will-Nifi-delete-a-file-from-SFTP/m-p/370279#M240682</guid>
      <dc:creator>RajiBM</dc:creator>
      <dc:date>2023-05-08T17:43:30Z</dc:date>
    </item>
  </channel>
</rss>

