web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

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

(0) ShareShare
ReportReport
Posted on by 7

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.

I have the same question (0)
  • v-LilyW-msft Profile Picture
    on at
    Re: How can I build a flow to delete specific folders on Sharepoint?

    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.

     

     

  • jrl_vortx Profile Picture
    7 on at
    Re: How can I build a flow to delete specific folders on Sharepoint?

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 659 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 386 Moderator

#3
chiaraalina Profile Picture

chiaraalina 290

Last 30 days Overall leaderboard