public void delete(File webapp){
  if (webapp.isDirectory()) {
    File[] files=webapp.listFiles();
    for (    File f : files) {
      delete(f);
    }
    webapp.delete();
  }
 else   webapp.delete();
}

public void delete ( File webapp ) { if ( webapp . isDirectory ( ) ) { File [ ] files = webapp . listFiles ( ) ; for ( File f : files ) { delete ( f ) ; } webapp . delete ( ) ; } else webapp . delete ( ) ; }
delete the existing unpacked console webapp
