Page 1 of 1

Delete older files

Posted: 31 Dec 2016 15:56
by anuraag
How to get file date? I know there is a option in Init Variable File List.

I would like to delete files older than 7 days. Currently i am using Init Variable File List to determine older files and running weekly. Is there any other way to do it?

Re: Delete older files

Posted: 02 Jan 2017 14:49
by seb
Hi,

I want to do exactly the same.

I use FolderSync to backup pictures from my phone to my NAS.

I would like to get rid of local pictures older than 6 months through Automagic, as FolderSync only allows to delete files successfully synced immediately.

@anuraag: mind sharing your recipe?

Thanks!
Seb

Re: Delete older files

Posted: 03 Jan 2017 05:50
by anuraag
I have created this flow using my rough knowledge about scripting.

You need to edit script and modify days_old as per your need.

I have added debug before delete action to check output.

Re: Delete older files

Posted: 03 Jan 2017 08:14
by seb
Thanks, this is perfect!

I changed it a bit so I get a notification of deleted files and update the media library after deletion.

Re: Delete older files

Posted: 18 Jan 2017 20:20
by cornelius59
Thank you anuraag it is that i want to do !!!!