code: public void deregisterCheck(String checkId) {
  
          final URI uri = createURI("/check/deregister/" + checkId);
  
          HTTP.Response response = HTTP.getResponse(uri.toString());
  
          if (response.status() != 200) {
              die("Error removing registration of service with Consul",
                      uri, checkId, response.status(), response.statusMessageAsString(),
                      response.payloadAsString());
          }
  
      }
docs: De-registers a Health Check with the Agent
  
  @param checkId the id of the Check to deregister