protected ResourceInstance createPrivilegeResource(String viewName, String viewVersion, String instanceName, String privilegeId) {
    Map<Resource.Type,String> mapIds = new HashMap<>();
    mapIds.put(Resource.Type.View, viewName);
    mapIds.put(Resource.Type.ViewVersion, viewVersion);
    mapIds.put(Resource.Type.ViewInstance, instanceName);
    mapIds.put(Resource.Type.ViewPrivilege, privilegeId);

    return createResource(Resource.Type.ViewPrivilege, mapIds);
  }
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