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 / Am trying to delete ol...
Power Automate
Unanswered

Am trying to delete old files by access date and not modified date. Is this possible?

(0) ShareShare
ReportReport
Posted on by 10

I intended to create a flow that deletes old files from a SharePoint library but want to get more specific about the flow. Initially I had set my flow to delete by created date, then modified date, but now I am wondering if power automate can pull access date from the metadata somehow? The thought is that a user may access a file but not necessarily modify it, and therefore, I would not want this file to be deleted by the flow. 

 

Thanks!

 

Categories:
I have the same question (0)
  • FutureSystems Profile Picture
    2 on at

    I have exactly the same requirement for a client.  We raised a Microsoft support case with a partner-level consultant a few months ago.  He asked around numerous colleagues and teams within Microsoft but came back to me to confirm that 'Last Accessed Date' isn't an option.  It is a property of files stored in the NTFS file system (e.g. on a Windows server) but that isn't what Sharepoint Online uses.  There is no record stored on a file in Sharepoint Online to say when it was last accessed.  Apparently, when Sharepoint does something that shows files recently accessed, it works this out 'on the fly' using some sort of secret magic that only particularly gifted people understand!

     

    We are trying to set up an automated house-keeping system (retention policies plus a flow) for our client's sprawling Sharepoint environment but are having to do it with Modified Date instead, which really isn't what the client wanted.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 250 Super User 2026 Season 1

#2
Expiscornovus Profile Picture

Expiscornovus 222 Most Valuable Professional

#3
Haque Profile Picture

Haque 174

Last 30 days Overall leaderboard