Required. The resource name of the Consent revision to delete, of the form projects/{projectId}/locations/{locationId}/datasets/{datasetId}/consentStores/{consentStoreId}/consents/{consent_id}@{revisionId}. An INVALID_ARGUMENT error occurs if revisionId is not specified in the name.
Authorization requires the following IAM permission on the specified resource name:
healthcare.consents.delete
Request body
The request body must be empty.
Response body
If successful, the response body is an empty JSON object.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-01 UTC."],[[["\u003cp\u003eThis API endpoint deletes a specific revision of a Consent resource within a designated consent store, identified by its full path.\u003c/p\u003e\n"],["\u003cp\u003eThe latest revision of a consent cannot be deleted, and attempting to do so will result in an \u003ccode\u003eINVALID_ARGUMENT\u003c/code\u003e error.\u003c/p\u003e\n"],["\u003cp\u003eThe request must be a \u003ccode\u003eDELETE\u003c/code\u003e request to the provided URL, including the full resource name with \u003ccode\u003erevisionId\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful deletion of a consent revision results in an empty JSON object as a response, and the request body must be empty.\u003c/p\u003e\n"],["\u003cp\u003eDeleting a revision requires either \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-healthcare\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e scopes, as well as \u003ccode\u003ehealthcare.consents.delete\u003c/code\u003e IAM permission.\u003c/p\u003e\n"]]],[],null,["# Method: consents.deleteRevision\n\n**Full name**: projects.locations.datasets.consentStores.consents.deleteRevision\n\nDeletes the specified revision of a [Consent](/healthcare-api/docs/reference/rest/v1/projects.locations.datasets.consentStores.consents#Consent). An [INVALID_ARGUMENT](/healthcare-api/docs/reference/rest/Shared.Types/Code#ENUM_VALUES.INVALID_ARGUMENT) error occurs if the specified revision is the latest revision.\n\n### HTTP request\n\n`DELETE https://healthcare.googleapis.com/v1/{name=projects/*/locations/*/datasets/*/consentStores/*/consents/*}:deleteRevision`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body is an empty JSON object.\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud-healthcare`\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]