public static void deleteCollection(String host,String collection) throws Exception {
  String deleteCollectionTemplate="http://%s:%s/solr/admin/collections?action=DELETE&name=%s";
  String deleteCollectionCommand=String.format(deleteCollectionTemplate,host,DEFAULT_SOLR_PORT,collection);
  executeSolrCommand(deleteCollectionCommand);
}

public static void deleteCollection ( String host , String collection ) throws Exception { String deleteCollectionTemplate = "http://%s:%s/solr/admin/collections?action=DELETE&name=%s" ; String deleteCollectionCommand = String . format ( deleteCollectionTemplate , host , DEFAULT_SOLR_PORT , collection ) ; executeSolrCommand ( deleteCollectionCommand ) ; }
given a collection name , it deletes it
