code: private void onDelete(String schemaName, Object pKey, HttpResponse response, JsonObject jsonObject)
              throws URISyntaxException, IOException, ClientProtocolException
      {
          URI uri;
          String q;
          JsonElement rev = jsonObject.get("_rev");
  
          StringBuilder builder = new StringBuilder();
          builder.append("rev=");
          builder.append(rev.getAsString());
          q = builder.toString();
  
          uri = new URI(CouchDBConstants.PROTOCOL, null, httpHost.getHostName(), httpHost.getPort(),
                  CouchDBConstants.URL_SEPARATOR + schemaName.toLowerCase() + CouchDBConstants.URL_SEPARATOR + pKey, q,
                  null);
  
          HttpDelete delete = new HttpDelete(uri);
  
          response = httpClient.execute(delete);
          closeContent(response);
      }
docs: On delete.
  
  @param schemaName
  the schema name
  @param pKey
  the key
  @param response
  the response
  @param jsonObject
  the json object
  @throws URISyntaxException
  the URI syntax exception
  @throws IOException
  Signals that an I/O exception has occurred.
  @throws ClientProtocolException
  the client protocol exception