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

Notifications

Announcements

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:
I have the same question (0)
  • v-LilyW-msft Profile Picture
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard