code: @Override
      public void dropSchema()
      {
          try
          {
              for (TableInfo tableInfo : tableInfos)
              {
                  HttpResponse deleteResponse = null;
                  Map<String, MapReduce> views = new HashMap<String, MapReduce>();
                  String id = CouchDBConstants.DESIGN + tableInfo.getTableName();
                  CouchDBDesignDocument designDocument = getDesignDocument(id);
                  designDocument.setLanguage(CouchDBConstants.LANGUAGE);
                  views = designDocument.getViews();
                  if (views != null)
                  {
                      StringBuilder builder = new StringBuilder("rev=");
                      builder.append(designDocument.get_rev());
                      URI uri = new URI(CouchDBConstants.PROTOCOL, null, httpHost.getHostName(), httpHost.getPort(),
                              CouchDBConstants.URL_SEPARATOR + databaseName.toLowerCase()
                                      + CouchDBConstants.URL_SEPARATOR + id, builder.toString(), null);
                      HttpDelete delete = new HttpDelete(uri);
                      try
                      {
                          deleteResponse = httpClient.execute(httpHost, delete, CouchDBUtils.getContext(httpHost));
                      }
                      finally
                      {
                          CouchDBUtils.closeContent(deleteResponse);
                      }
                  }
              }
          }
          catch (Exception e)
          {
              logger.error("Error while creating database, caused by {}.", e);
              throw new SchemaGenerationException("Error while creating database", e, "couchDB");
          }
      }
docs: drop design document from db.