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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Delete files from a sh...
Power Automate
Unanswered

Delete files from a sharepoint folder

(0) ShareShare
ReportReport
Posted on by 11

I have created a flow where when a list item is created, attachements attached to this item are created as different files on a sharepoint folder (used apply to each loop there to create multiple files attached by user). I will then extract these files using the provision on automate in the same apply to each loop and then outside of this loop, I have these files emailed to the required party. Now once this email is sent, i want to delete these files that i had created for the sake of submission. I tried to use get files properties only action after email to list files within the folder I had created them, then used delete file action inside another apply to each loop there to delete the multiple files listed by get files prop only action, flow succeeds but files were never deleted. 

 

i guess im choosing wrong inputs for delete file  action, but i understand this need to be in a loop to be able to delete multiple files in one go.

kotkarshashank_0-1680883149488.png

 

I doubt my skills to be able to extract file name from create file action under main apply to each loop where I had created these files in the first place. even if i do, how to use that to delete files is going over my head kotkarshashank_1-1680883360139.png

 

any suggestions on how to delete these files are most welcome.

Categories:
I have the same question (0)
  • CFernandes Profile Picture
    8,482 Most Valuable Professional on at

    Hey @kotkarshashank 

     

    See the Flow below - In the "Apply to each" I have added value and then used the "identifier".

     

    CFernandes_0-1680890227689.png

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

  • CU03091917-0 Profile Picture
    26 on at
    Cant read the blurry screenshots

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 291 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 238 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 109 Super User 2026 Season 1

Last 30 days Overall leaderboard