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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How can I build a flow...
Power Automate
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.

Categories:
  • v-LilyW-msft Profile Picture
    Microsoft Employee on at

    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

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 430

#2
11manish Profile Picture

11manish 341 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 282

Last 30 days Overall leaderboard