Stay organized with collections
Save and categorize content based on your preferences.
Full name: projects.locations.datasets.consentStores.consents.delete
Deletes the Consent and its revisions. To keep a record of the Consent but mark it inactive, see [consents.revoke]. To delete a revision of a Consent, see [consents.deleteRevision]. This operation does not delete the related Consent artifact.
Required. The resource name of the Consent to delete, of the form projects/{projectId}/locations/{locationId}/datasets/{datasetId}/consentStores/{consentStoreId}/consents/{consent_id}. An INVALID_ARGUMENT error occurs if revisionId is 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 endpoint \u003ccode\u003eprojects.locations.datasets.consentStores.consents.delete\u003c/code\u003e deletes a specified Consent and its revisions.\u003c/p\u003e\n"],["\u003cp\u003eThe request URL is \u003ccode\u003eDELETE https://healthcare.googleapis.com/v1/{name=projects/*/locations/*/datasets/*/consentStores/*/consents/*}\u003c/code\u003e, following gRPC Transcoding syntax.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ename\u003c/code\u003e parameter in the URL path is mandatory, which represents the resource name of the Consent to delete in the specific format.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must be empty and a successful deletion will return an empty JSON object.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires either the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-healthcare\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope, along with the \u003ccode\u003ehealthcare.consents.delete\u003c/code\u003e IAM permission.\u003c/p\u003e\n"]]],[],null,["# Method: consents.delete\n\n**Full name**: projects.locations.datasets.consentStores.consents.delete\n\nDeletes the [Consent](/healthcare-api/docs/reference/rest/v1/projects.locations.datasets.consentStores.consents#Consent) and its revisions. To keep a record of the Consent but mark it inactive, see \\[consents.revoke\\]. To delete a revision of a Consent, see \\[consents.deleteRevision\\]. This operation does not delete the related Consent artifact.\n\n### HTTP request\n\n`DELETE https://healthcare.googleapis.com/v1/{name=projects/*/locations/*/datasets/*/consentStores/*/consents/*}`\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)."]]