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.

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

Regards,

Ash.

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (3,646)