cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jrl_vortx
Regular Visitor

How can I build a flow to delete specific folders on Sharepoint?

Hi,

 

I just bulit a scheduled flow to erase .txt files from a specific folder, it worked just fine, like that:

 

jrl_vortx_0-1634841766378.png

jrl_vortx_4-1634841867387.png

Now, I want to do the same thing, but to erase folders that are in the same path... I tried many different aproaches, but without success...

 

I created a new flow just for that.

 

Can anyone help?

 

Thanks.

2 REPLIES 2
v-LilyW-msft
Community Support
Community Support

Hi @jrl_vortx 

According to your description, you want to delete the specified folder.

Assume I want to delete Test1 folder.

vLilyWmsft_0-1635238562199.png

Flow in details:

vLilyWmsft_1-1635238610658.png

vLilyWmsft_2-1635238761869.png

Add Delete item and select Enter custom value. Then enter the library name.

vLilyWmsft_3-1635238811904.png

vLilyWmsft_4-1635238912757.png

Save and test.

After flow runs, Test1 will be deleted.

 

Hope the content above may help you.

Best Regards

If my solution helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Hello!

 

What I need is to erase subfolders from a specific folder.

 

Let's assume that inside Test1 we have "Test2" and "Test3", and in the next day we have "Round1", "Round6" and "Round2". In the first day I need to erase "Test2 " and "Test3", on the next day I need to erase "Round1", "Round6" and "Round2".

 

How can I do that and what´s the initial trigger?

 

Thanks.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (2,953)