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?
Delete older files
Moderator: Martin
Re: Delete older files
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
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
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.
You need to edit script and modify days_old as per your need.
I have added debug before delete action to check output.
- Attachments
-
- flow_Delete_files_older_than_x_days_20170103_111646.xml
- (4.25 KiB) Downloaded 1138 times
Re: Delete older files
Thanks, this is perfect!
I changed it a bit so I get a notification of deleted files and update the media library after deletion.
I changed it a bit so I get a notification of deleted files and update the media library after deletion.
-
- Posts: 3
- Joined: 09 May 2015 13:53
Re: Delete older files
Thank you anuraag it is that i want to do !!!!