public static boolean recursiveDelete(File file){
  if (file.isDirectory()) {
    String[] children=file.list();
    if (children == null)     return false;
    for (    String child : children) {
      recursiveDelete(new File(file,child));
    }
  }
  return file.delete();
}

public static boolean recursiveDelete ( File file ) { if ( file . isDirectory ( ) ) { String [ ] children = file . list ( ) ; if ( children == null ) return false ; for ( String child : children ) { recursiveDelete ( new File ( file , child ) ) ; } } return file . delete ( ) ; }
delete every item below the file location
