<?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: How can we delete files after sftp using Nifi processors in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-can-we-delete-files-after-sftp-using-Nifi-processors/m-p/305226#M222355</link>
    <description>&lt;P&gt;The executestreamcommand solution should work, as confirmed on &lt;A href="https://stackoverflow.com/questions/64589722/how-to-delete-file-from-ftp-server-using-nifi-processor/64590913#64590913" target="_self"&gt;this external website&lt;/A&gt;:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To quote the most relevant part:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ExecuteStreamCommand solved my problem. Create a small script and execute it with parameters from NiFi:&amp;nbsp;&lt;/SPAN&gt;#!/bin/bash HOST=$1 USER=$2 PASSWORD=$3 ftp -inv $HOST &amp;lt;&amp;lt;EOF user $USER $PASSWORD cd /sources delete $4 bye EOF&lt;/P&gt;</description>
    <pubDate>Sun, 01 Nov 2020 11:06:47 GMT</pubDate>
    <dc:creator>DennisJaheruddi</dc:creator>
    <dc:date>2020-11-01T11:06:47Z</dc:date>
  </channel>
</rss>

