@DELETE
  @Path("{privilegeId}")
  @Produces(MediaType.TEXT_PLAIN)
  @ApiOperation(value = "Delete privileges")
  @ApiResponses({
    @ApiResponse(code = HttpStatus.SC_OK, message = MSG_SUCCESSFUL_OPERATION),
    @ApiResponse(code = HttpStatus.SC_NOT_FOUND, message = MSG_CLUSTER_OR_HOST_NOT_FOUND),
    @ApiResponse(code = HttpStatus.SC_UNAUTHORIZED, message = MSG_NOT_AUTHENTICATED),
    @ApiResponse(code = HttpStatus.SC_FORBIDDEN, message = MSG_PERMISSION_DENIED),
    @ApiResponse(code = HttpStatus.SC_INTERNAL_SERVER_ERROR, message = MSG_SERVER_ERROR),
  })
  public Response deletePrivilege(@Context HttpHeaders headers, @Context UriInfo ui,
    @ApiParam(value = "view name") @PathParam("viewName") String viewName,
    @ApiParam(value = "view version") @PathParam("version") String version,
    @ApiParam(value = "instance name") @PathParam("instanceName") String instanceName,
    @ApiParam(value = "privilege id") @PathParam("privilegeId") String privilegeId) {
    return handleRequest(headers, null, ui, Request.Type.DELETE, createPrivilegeResource(viewName, version, instanceName, privilegeId));
  }
Handles: DELETE /views/{viewName}/versions/{version}/instances/{instanceName}/privileges/{privilegeID}
Delete a specific privilege.

@param headers       http headers
@param ui            uri info
@param viewName      view id
@param version       version id
@param instanceName  instance id
@param privilegeId   privilege id

@return information regarding the deleted privilege
ambari-server/src/main/java/org/apache/ambari/server/api/services/views/ViewPrivilegeService.java