Del file

52 views
Skip to first unread message

Mars Chak

unread,
Dec 13, 2025, 10:42:38 AM (3 days ago) Dec 13
to Automate for Android
Please forgive my poor English. I want to specify a folder and delete all files older than 15 days. Is that possible?

мJ Zкxy

unread,
Dec 15, 2025, 5:52:01 PM (24 hours ago) Dec 15
to Automate for Android
You can use Shell command block for that or ask GPT to create that specific function for you.

Grant M

unread,
12:27 PM (5 hours ago) 12:27 PM
to Automate for Android
Use the File list block to get an array of all file paths in the directory, then start a For loop of that array. Use the File exists block to get the last modified timestamp of each file, then use an Expression true block with the formula "modifiedAt < (Now - time(24 * 15))". If it's true, then the file is older than 15 days and you can connect the YES dot to a File delete block. Otherwise, the NO dot can connect back to the IN dot of the For block.

Joey Elmer Tuaño II

unread,
12:31 PM (5 hours ago) 12:31 PM
to automa...@googlegroups.com
Yes po connect a automate For my apps ball sort 

--
You received this message because you are subscribed to the Google Groups "Automate for Android" group.
To unsubscribe from this group and stop receiving emails from it, send an email to automate-use...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/automate-user/64362623-3d0d-4380-8516-a008f3d86e5an%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages