public static void deleteAllEmptyFiles(File file){
        ArrayList<File> emptyFiles = new ArrayList<File>();
        File[] flist = file.listFiles();
        if(flist!=null){
            for (File aFlist : flist) {
                if (aFlist.isFile()) {
                    if (isEmpty(aFlist)) {
                        deleteFile(aFlist);
                    }
                } else if (aFlist.isDirectory()) {
                    deleteAllEmptyFiles(aFlist);
                }
            }
        }
    }