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

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

Liquid error: Object of type 'Adxstudio.Xrm.Web.Mvc.Liquid.EntityReferenceDrop' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. trice602 248 Super User 2026 Season 1

#2
David_MA Profile Picture

Liquid error: Object of type 'Adxstudio.Xrm.Web.Mvc.Liquid.EntityReferenceDrop' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. David_MA 207 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Liquid error: Object of type 'Adxstudio.Xrm.Web.Mvc.Liquid.EntityReferenceDrop' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Power Platform 1919 101 Super User 2026 Season 1

Last 30 days Overall leaderboard