public static boolean deleteFilesAndDirsRecursive(final String file){
  if (TextUtils.isEmpty(file)) {
    Log.e(FileUtils.class,"deleteFilesAndDirsRecursive(): Null or Empty parameter given");
    return false;
  }
  return deleteFilesAndDirsRecursive(new File(file));
}

public static boolean deleteFilesAndDirsRecursive ( final String file ) { if ( TextUtils . isEmpty ( file ) ) { Log . e ( FileUtils . class , "deleteFilesAndDirsRecursive(): Null or Empty parameter given" ) ; return false ; } return deleteFilesAndDirsRecursive ( new File ( file ) ) ; }
method deletes all files and subdirectories recursively from given directory . returns true if all files deleted false if at least one doesn ' t
