cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Automated Flow to delete duplicate files in a SharePoint folder

I currently have an Automated Flow set up to take attachments from a shared mailbox and save them to a SharePoint folder location.

 

Overtime I build up a number of duplicate files and am now keen to explore if anyone can suggest a Flow to Automate the deletion of duplicate files from this SharePoint Folder destination.

 

Any help or guidance greatly appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Automated Flow to delete duplicate files in a SharePoint folder

 

Hi @Pringle ,

 

You could consider judging whether the existing file names and attachment names in the folder are equal to filter duplicate files.

  1. Use List folder action to get the files in the specified folder. Configure the Filter array to filter the files that meet the conditions.
  2. If duplicate files exist, delete the file and create a new file.

Image reference:

2.PNG3.PNG

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Highlighted
Community Support
Community Support

Re: Automated Flow to delete duplicate files in a SharePoint folder

 

Hi @Pringle ,

 

You could consider judging whether the existing file names and attachment names in the folder are equal to filter duplicate files.

  1. Use List folder action to get the files in the specified folder. Configure the Filter array to filter the files that meet the conditions.
  2. If duplicate files exist, delete the file and create a new file.

Image reference:

2.PNG3.PNG

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (8,056)