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 / Delete files older tha...
Power Automate
Unanswered

Delete files older than X days

(0) ShareShare
ReportReport
Posted on by

Hey,

 

so i tried many different things now and read through various scripts, but i don't

understand the background mechanics of deleting files older than X days.

 

I use german power automate, so hopefully i translate the terms right into english.

I want, from a Backup folder delete files that are older than certain days ... 5 or 10 or how many ever.

I think this works with the Odata filter (from what i have seen here) and the Get Files (Properties only) from SharePoint.

Now, i have no clue how odata filters my files but my best guess until yet is this:

EpsilonNegative_0-1663236832925.png

 

Shouldn't this get all files that are created on less than 5 days ago ?

So if today is the 15. October, this goes back to 10. October and deletes all files that are less than 10 . Oct?

So every file form 1. Oct to 9.Oct?

Presuming i started backups at 1. Oct.

As there is no feedback when i create the flow, if this command is right, i wanted to check if it works that way,
before i continue with the delete function.

Categories:
I have the same question (0)

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