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-23 UTC."],[[["\u003cp\u003eThis endpoint deletes a specified Consent and its revisions within a given consent store.\u003c/p\u003e\n"],["\u003cp\u003eThe endpoint utilizes a DELETE HTTP request to the specified URL, which includes the full resource name of the Consent.\u003c/p\u003e\n"],["\u003cp\u003eDeleting a revision of a Consent is a separate operation, not performed by this request.\u003c/p\u003e\n"],["\u003cp\u003eThe request body for deleting a Consent must be empty, and a successful deletion returns an empty JSON object.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization to use this endpoint requires specific IAM permissions, namely \u003ccode\u003ehealthcare.consents.delete\u003c/code\u003e, and one of two specified OAuth scopes.\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/v1beta1/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/v1beta1/{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)."]]