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
if storageDir is a directory
for(File tempFile : storageDir.listFiles()) { tempFile.delete(); }