Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Delete File over SFTP

(0) ShareShare
ReportReport
Posted on by

I have a fairly simple flow. It fetches a new file that appears in the SFTP directory and then copies it to SharePoint. This part work as expected, however, I want to remove this file from SFTP server after copying to SharePoint is done. I appended one step to my flow, SFTP Delete file:

flowflow

 

Once it is executed, it executes all steps but the last one. It's greyed out and nothing happens on the SFTP side. Flow status is running but nothing gets removed from SFTP. In Delete File parameters File I tried to pass the file path and file ID (from step one). Both don't work. Any hints how to move on?

resultresult

  • Tjan Profile Picture
    1,087 Super User 2025 Season 1 on at
    Re: Delete File over SFTP

    @MarioOntario  Hi Maria, did you check the option ''Skip delete if file not found" ? If you did, this may be the cause of the gray box. It might have skipped the deletion of your file because it couldn't find the SFTP file. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,700 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow