I want to delete all my images say in a particular folder every monday. Is there a way for me to acheive this.
Delete Images (237)
A1: List Files [ Dir:DCIM/Camera Match:*.jpg/*.png Include Hidden Files:Off Use Root:Off Sort Select:Alphabetic Variable:%files_list ]
A2: Stop [ With Error:Off Task: ] If [ %files_list(#) < 1 ]
A3: For [ Variable:%file Items:%files_list() ]
A4: Delete File [ File:%file Shred Level:0 Use Root:Off ]
A5: End For
A6: Notify [ Title:Files Deleted Text:%files_list(#) images were deleted! Icon:null Number:0 Permanent:Off Priority:3 ]
A bit advanced (delete 30 days old images).
Delete Old Files (171)
A1: List Files [ Dir:DCIM/Camera Match:*.jpg//*.png Include Hidden Files:Off Use Root:Off Sort Select:Alphabetic Variable:%files_list ]
A2: Stop [ With Error:Off Task: ] If [ %files_list(#) < 1 ]
A3: For [ Variable:%file Items:%files_list() ]
A4: Test File [ Type:Modified Data:%file Store Result In:%file_date Use Root:Off ]
A5: Variable Set [ Name:%file_age To:(%TIMES-%file_date)/86400 Recurse Variables:Off Do Maths:On Append:Off ]
A6: If [ %file_age > 30 ]
A7: Test File [ Type:Size Data:%file Store Result In:%deleted_files_size Use Root:Off ]
A8: Variable Set [ Name:%total_size To:%deleted_files_size+%total_size Recurse Variables:Off Do Maths:On Append:Off ]
A9: Delete File [ File:%file Shred Level:0 Use Root:Off ]
A10: Variable Set [ Name:%deleted_files To:%deleted_files+1 Recurse Variables:Off Do Maths:On Append:Off ]
A11: End If
A12: End For
A13: Variable Convert [ Name:%total_size Function:Bytes to Megabytes Store Result In: ]
A14: AutoNotification [ Configuration:Title: DCIM Auto Delete!
Text: %deleted_files files were deleted.
Status Bar Icon: ic_action_trash
Number: %deleted_files
Sound: content://media/external/audio/media/21826
Text Expanded: %deleted_files files were deleted and total size recovered is %total_size MB!! Timeout (Seconds):20 ]
Hey Abdullah ur easy way worked but there is something that didn't work the way it should. I checked the images after the action ran and they have been deleted from their respective l folder but when I open my gallery those images are still there but now completely black/Grey and I still have to delete them from my gallery! Can u help me on how to get rid of the images as well as those black things in my gallery?