How to find when a file is created


#1

Hi,
Does anyone know how to delete a file that is 7 days old for example? how do I find out the creation date of the file?
Thanks,
Mido


#2

Hi @alotfy,

A suggested good practice would be to search through the forum if someone else already has a solution for your problem. Please feel free to go thru Intro.

Here’s a similar post to yours:


#3

Thank you!


#4

I just fixed this up a little bit for myself as a reusable workflow that all projects can use. Feel free to look/copy or use it.
DeleteOldFiles.xaml (15.7 KB)

EDIT: corrected “last access” to “creation” time which I changed in the code
EDIT2: reuploaded to correct coding error that I didn’t realize.

@alotfy

Regards.


#5

Thank you so much, it really helped!
Mido