Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Delete file with specific prefix in sharepoint

(0) ShareShare
ReportReport
Posted on by 21

Hello everyone,

 

I have a a folder contains multiple subfolders. In each of these folders I have multiple files that is created throughout the year 

 

The format of the file is 2020-07_xxxx-xxx . 

 

1. How do I select the 2020-07 and let power automate understands that this is the time that I would like to delete file 

 

2 Right now my flow is 

 

Recurrence -> List folder to get all the subfolders. I a not sure what I should do next 

 

Please help advise 


Thank you very much 

  • Mira Ghaly Profile Picture
    11,409 Super User 2025 Season 1 on at
    Re: Delete file with specific prefix in sharepoint

    @janebraine 

    Please try the below

    1. Add apply to each action on the Body of your List Folder Action

    2. Add A condition to check if the folder display name contains the value you want or begins with the value you are checking against

    Mira_Ghaly_0-1596021480475.png

     

    If you like this post gives Thumbs up ; if it solves your problem please mark as accepted solution

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,552 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,928 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow