I am trying to create a flow that copies the file to SharePoint when a new file is added to an SFTP server and then deleted the file from the SFTP folder. So far I have tried the following, the flow copy or create the file but not delete file in sftp
Thank you for the Help.
Hi @CruzBinet ,
The "delete file" action require a "unique id" of the file instead of the File name.
You should use the trigger "When files are added or modified (properties only)" of sftp connector, the trigger "When files are added or modified (properties only)" of sftp connector would have a "Id" dynamic content for you to use to delete the file. And you could add a "Get file content" action to get the file content and create the file in the sharepoint.
Best regards,
Alice
Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Michael E. Gernaey
497
Super User 2025 Season 2
David_MA
436
Super User 2025 Season 2
Riyaz_riz11
244
Super User 2025 Season 2