private void deleteCubeDataFiles(File tessdataDir) {
    File badFile;
    for (String s : CUBE_DATA_FILES) {
      badFile = new File(tessdataDir.toString() + File.separator + languageCode + s);
      if (badFile.exists()) {
        Log.d(TAG, "Deleting existing file " + badFile.toString());
        badFile.delete();
      }
      badFile = new File(tessdataDir.toString() + File.separator + "tesseract-ocr-3.01." 
          + languageCode + ".tar");
      if (badFile.exists()) {
        Log.d(TAG, "Deleting existing file " + badFile.toString());
        badFile.delete();
      }
    }
  }
Delete any existing data files for Cube that are present in the given directory. Files may be 
partially uncompressed files left over from a failed install, or pre-v3.01 traineddata files.

@param tessdataDir
         Directory to delete the files from
OCRTest/src/main/java/edu/sfsu/cs/orange/ocr/OcrInitAsyncTask.java