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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard