web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Help deleting a file i...
Power Automate
Answered

Help deleting a file in OneDrive and saving an email attachment

(1) ShareShare
ReportReport
Posted on by 84

My goal is to set up a Flow that searches new email attachments for a certain string, and when triggered deletes a file from OneDrive for Business (the old version of the email attachment), and saves the current version with it's existing name (the same file name with an updated date). I'm struggling with the step to delete the existing file - how I can delete all files in the specified folder rather than having to specify the file to delete, here's what I have so far:

 

 

Capture.JPG

Categories:
I have the same question (0)
  • Verified answer
    v-yuazh-msft Profile Picture
    Microsoft Employee on at

    Hi @mterry,

     

    I have made a test on my side, please refer to screenshot below to create the flow:

    Capture.PNG

    Capture.PNG

     

    The flow would run successfully as below:

    Capture.PNG

     

     

    Best regards,

    Alice

     

  • mterry Profile Picture
    84 on at

    Worked perfectly, thanks for your help

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 112 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 52

#3
Ellis Karim Profile Picture

Ellis Karim 51 Super User 2026 Season 1

Last 30 days Overall leaderboard