I use this code to delete all files:
File root = new File(\"root path\"); File[] Files = root.listFiles(); if(Files != null) { int j; for(j = 0; j < F
you can try this code to delete files and subfiles
public void deleteFile(File f){ String[] flist=f.list(); for(int i=0;i