Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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!

 

  • FutureSystems Profile Picture
    2 on at
    Re: Am trying to delete old files by access date and not modified date. Is this possible?

    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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow