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 / Auto deleting file on ...
Power Automate
Answered

Auto deleting file on sharepoint

(0) ShareShare
ReportReport
Posted on by

Hi all,

 

I am trying to build a flow to auto delete sharepoint files which is 3 days old. However, the condition always return false even the filename contains the keyword I set. Any ideas?

 

Capture.PNGCapture2.PNG

Categories:
I have the same question (0)
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @hkallen 

     

    You might want to consider using the ODATA filters for a better and fast flow automation rather than getting a list of all the files and performaing operations on those. A perfect guide to ODATA filters is here:

    https://flow.microsoft.com/en-us/blog/advanced-flow-of-the-week-filtering-with-odata/

     

    You can use the startswith or substirng etc. functions for the file name and the date filter function in the same filter query. 

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • Verified answer
    v-bacao-msft Profile Picture
    on at

    Hi @hkallen ,

     

    If you are using Created for comparison, please try to use the following configuration.

    It is recommended to use Is folder to exclude folders.

    Image reference:2.PNG

    Hope it helps.

     

    Best Regards,

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard