peacemaker Expert Licensed User Longtime User Mar 23, 2016 #1 B4X: File.Delete(File.DirInternal, "*.*") File.Delete(File.DirInternalCache, "*.*") Are both correct to clean each folder ? During debugging i can see in the List = File.ListFiles(File.DirInternal) that no files deleted
B4X: File.Delete(File.DirInternal, "*.*") File.Delete(File.DirInternalCache, "*.*") Are both correct to clean each folder ? During debugging i can see in the List = File.ListFiles(File.DirInternal) that no files deleted
DonManfred Expert Licensed User Longtime User Mar 23, 2016 #2 File.delete does not accept wildcards Do a File.ListFiles first and then delete the files based on the resultlisting Upvote 0
File.delete does not accept wildcards Do a File.ListFiles first and then delete the files based on the resultlisting
Peter Simpson Expert Licensed User Longtime User Mar 23, 2016 #4 Check this out https://www.b4x.com/android/forum/threads/delete-all-files-from-sd-card.24106/#post-139729 Upvote 0
Check this out https://www.b4x.com/android/forum/threads/delete-all-files-from-sd-card.24106/#post-139729