web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Question : Compare Fil...
Power Automate
Unanswered

Question : Compare Files and Delete

(0) ShareShare
ReportReport
Posted on by 30

Hi,

Is it possible:

 

  • Compare the files in each folder of a document library.
  • If two documents in the same folder have the same specific medata.
  • Then the file with the oldest date is deleted.

Regards,
Guillaume

Categories:
  • ScottShearer Profile Picture
    25,331 Most Valuable Professional on at

    @Guillaume_G92 

    It is easy in most cases to compare file metadata (use Get file metadata action) and also compare the created and/or modified dates.

    Can you provide some more detail in terms of your use case.  Do you want to limit this to a specific folder or do you want to iterate through an entire library, find files by the same name and compare them?  If you want to iterate through all folders and files, it can be done but it will be a bit messy.

     

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 263

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard