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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (6,793)