private DeleteRequest createDeleteRequest(HttpHeaders headers, RequestBody body, UriInfo uriInfo, ResourceInstance resource) {
    applyDirectives(Request.Type.DELETE, body, uriInfo, resource);
    return new DeleteRequest(headers, body, uriInfo, resource);
  }
Creates a DELETE request. It will apply any eligible directives supplied in the URI
ambari-server/src/main/java/org/apache/ambari/server/api/services/RequestFactory.java