public static boolean deleteFilesAndDirsRecursive(final File directory){
  if (directory == null || !directory.isDirectory()) {
    Log.e(FileUtils.class,"deleteFilesAndDirsRecursive(): Null parameter given or not a Directory");
    return false;
  }
  return deleteFilesAndDirs(directory);
}

public static boolean deleteFilesAndDirsRecursive ( final File directory ) { if ( directory == null || ! directory . isDirectory ( ) ) { Log . e ( FileUtils . class , "deleteFilesAndDirsRecursive(): Null parameter given or not a Directory" ) ; return false ; } return deleteFilesAndDirs ( directory ) ; }
method deletes all files and subdirectories recursively from given directory . returns true if all files deleted false if at least one doesn ' t
