Android Question File.Delete all files in a folder

peacemaker

Expert
Licensed User
Longtime User
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
File.delete does not accept wildcards

Do a File.ListFiles first and then delete the files based on the resultlisting
 
Upvote 0
Top