Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

Cleaning Up New Sharepoint Folders

We are in the process of moving our database from our dying server to Sahrepoint. We have many folders, and within, many files. Im hoping there is a way to create a flow that will help get rid of all the old files automatically so we are not wasting space and time. The scenario is that we have old revisions of files mixed in with the latest versions and the old revisions are pointless to have. For example:


  • Part200_REL (Original file, OLD, need to remove)
  • PART200_A (First revision, OLD, need to remove)
  • PART200_B (second revision, OLD, need to remove)
  • PART200_C (latest revision, NEW, need to KEEP)

Is it possible to create a flow that looks through the folder and clean up files based on its file name ending with said letters? Such as, "DELETE A,B IF C exists......DELETE A,B,C IF D exists" etc.


If it helps at all, im using the "Document Center" Sharepoint site template and would also like to use the "Content Organizer" rules along with the "Drop off Library".


FYI, The site has no folders in it yet, it is a blank slate. So the flow would essentially be running when i upload everything and then after a new file is added by a team member.


Helpful resources

Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Users online (2,169)