cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AshMSport
Level: Powered On

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
Highlighted
Community Support Team
Community Support Team

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

 

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

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

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!



Highlighted
Community Support Team
Community Support Team

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

 

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

AshMSport
Level: Powered On

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

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

Regards,

Ash.

Helpful resources

Announcements
firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Kudoed Authors
Users online (10,172)