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 III
Super User III

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
MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (51,406)