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

Cleaning Up New Sharepoint Folders

(0) ShareShare
ReportReport
Posted on by 9

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.

I have the same question (0)

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 797 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 425 Moderator

#3
developerAJ Profile Picture

developerAJ 319

Last 30 days Overall leaderboard