cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AshMSport
Frequent Visitor

Flow to delete files in SP sub folder completes but files not deleted

I created a Power Automate flow to delete files every 5 minutes from a subfolder in a document library. It runs successfully but does not delete any file. Below are the two flows that I tested, none of them work. Please tell me what needs to be corrected here:
DeleteFilesFlow.jpg

DeleteFilesFlow2.jpg

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-bacao-msft
Community Support
Community Support

 

Hi @AshMSport ,

 

Please refer to the methods below to configure Flow and see if it helps.

Use List folder action to get the files in the specified folder and then delete those files.

Image reference:

74.PNG

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
efialttes
Super User
Super User

Hi
Did you doublecheck that Filter array is not providing an empty array as output?
If not empty, the issue is probably with the file identifier used on Delete file
Hope this helps


Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



v-bacao-msft
Community Support
Community Support

 

Hi @AshMSport ,

 

Please refer to the methods below to configure Flow and see if it helps.

Use List folder action to get the files in the specified folder and then delete those files.

Image reference:

74.PNG

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Thankyou @v-bacao-msft , that worked like a charm 🍻

Regards,

Ash.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Microsoft Ignite 768x460.png

Find your focus

Explore the latest tools,training sessions,technical expertise, networking and more.

Users online (1,488)