Stay organized with collections
Save and categorize content based on your preferences.
Full name: projects.locations.datasets.fhirStores.fhir.delete
Deletes a FHIR resource.
Implements the FHIR standard delete interaction (DSTU2, STU3, R4, R5).
Note: Unless resource versioning is disabled by setting the disableResourceVersioning flag on the FHIR store, the deleted resources will be moved to a history repository that can still be retrieved through vread and related methods, unless they are removed by the purge method.
[[["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 \u003ccode\u003eprojects.locations.datasets.fhirStores.fhir.delete\u003c/code\u003e allows for the deletion of a FHIR resource, adhering to the FHIR standard delete interaction as defined in DSTU2, STU3, and R4 specifications.\u003c/p\u003e\n"],["\u003cp\u003eDeleted FHIR resources are moved to a history repository and remain retrievable through the \u003ccode\u003evread\u003c/code\u003e method unless resource versioning is disabled on the FHIR store, or they are permanently removed with the \u003ccode\u003epurge\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ename\u003c/code\u003e path parameter is mandatory, and the HTTP request requires the \u003ccode\u003ehealthcare.fhirResources.delete\u003c/code\u003e IAM permission on the specified resource.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request is made using the DELETE method with a specific URL format, and the request body must be empty.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization for this operation requires one of the specified OAuth scopes: \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-healthcare\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: fhir.delete\n\n**Full name**: projects.locations.datasets.fhirStores.fhir.delete\n\nDeletes a FHIR resource.\n\nImplements the FHIR standard delete interaction ([DSTU2](https://hl7.org/fhir/DSTU2/http.html#delete), [STU3](https://hl7.org/fhir/STU3/http.html#delete), [R4](https://hl7.org/fhir/R4/http.html#delete), [R5](https://hl7.org/fhir/R5/http.html#delete)).\n\nNote: Unless resource versioning is disabled by setting the [disableResourceVersioning](/healthcare-api/docs/reference/rest/v1/projects.locations.datasets.fhirStores#FhirStore.FIELDS.disable_resource_versioning) flag on the FHIR store, the deleted resources will be moved to a history repository that can still be retrieved through [vread](/healthcare-api/docs/reference/rest/v1/projects.locations.datasets.fhirStores.fhir/vread#google.cloud.healthcare.v1.fhir.rest.FhirService.GetResourceVersion) and related methods, unless they are removed by the [purge](/healthcare-api/docs/reference/rest/v1/projects.locations.datasets.fhirStores.fhir/Resource-purge#google.cloud.healthcare.v1.fhir.rest.FhirService.DeleteResourceVersions) method.\n\nFor samples that show how to call `delete`, see [Deleting a FHIR resource](https://cloud.google.com/healthcare/docs/how-tos/fhir-resources#deleting_a_fhir_resource).\n\n### HTTP request\n\n`DELETE https://healthcare.googleapis.com/v1/{name=projects/*/locations/*/datasets/*/fhirStores/*/fhir/*/*}`\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 is a generic HTTP response whose format is defined by the method.\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)."]]