cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Gazsim
Helper I
Helper I

Delete file by type - entire folder and sub folders

Hi All, 

 

I have been working on a flow to delete all .zip files on my OneDrive - however at the moment I can only get this to work looking at a specific folder rather than an entire folder and all its sub folders. So the question is can it be done this way? Screen shots attached of my current flow.

 

Thanks, 

GazCapture2.PNG

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-alzhan-msft
Community Support
Community Support

Hi @Gazsim ,

 

I have made a test on my side and find that the action "List files in folder [DEPRECATED]" that support list files in a folder (Include subfolders) is canceled currently.

I'm afraid that you could only create flow for all the folders and subfolders to achieve your needs.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
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

2 REPLIES 2
abm
Super User III
Super User III

Hi @Gazsim 

 

Yes it is possible to get all the files for all the subfolders within subfolders etc.

 

Here you are looking for a recursive call to retrieve subfolders.

 

You need couple of flows to acheive this.  

 

Here are some of the links which might be helpful.

 

http://johnliu.net/blog/2017/7/nested-flow-cheatsheet-for-microsof-flow

 

https://flow.microsoft.com/en-us/blog/build-nested-flows/

 

If you need further help please let me know.

 

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

 



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blogPower Automate Video Tutorials
v-alzhan-msft
Community Support
Community Support

Hi @Gazsim ,

 

I have made a test on my side and find that the action "List files in folder [DEPRECATED]" that support list files in a folder (Include subfolders) is canceled currently.

I'm afraid that you could only create flow for all the folders and subfolders to achieve your needs.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
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

Helpful resources

Announcements
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

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (44,494)