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
Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,791)