Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

How can we delete files after sftp using Nifi processors

Highlighted

How can we delete files after sftp using Nifi processors

New Contributor

Here is my scenario that I am implementing in Nifi - I am connecting to external system and need to fetch the files from source directory, I am able to get the files using listftp processor and fetchftp processor and now I am moving files to target location using Putsftp processor/sending it to a rest service using invokehttp processor. After success of this step I need to delete files in source location, but I am not able to delete. I tried using ExecuteStreamcommand Processor to delete the files, but its not working. Did someone encountered this scenario and pls suggest on how to solve this issue.


I tried this approach, but I am not able to delete it

https://community.hortonworks.com/questions/189979/how-to-remove-folder-and-everything-inside-that-f...


Thanks,