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 are 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, is used to delete a FHIR resource according to the FHIR standard.\u003c/p\u003e\n"],["\u003cp\u003eDeleted resources are moved to a history repository unless resource versioning is disabled on the FHIR store.\u003c/p\u003e\n"],["\u003cp\u003eThe resource to be deleted is specified by the \u003ccode\u003ename\u003c/code\u003e path parameter in the HTTP request.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request must be a \u003ccode\u003eDELETE\u003c/code\u003e method with an empty request body.\u003c/p\u003e\n"],["\u003cp\u003eDeleting a FHIR resource requires specific IAM permissions and OAuth scopes.\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/v1beta1/projects.locations.datasets.fhirStores#FhirStore.FIELDS.disable_resource_versioning) flag on the FHIR store, the deleted resources are moved to a history repository that can still be retrieved through [vread](/healthcare-api/docs/reference/rest/v1beta1/projects.locations.datasets.fhirStores.fhir/vread#google.cloud.healthcare.v1beta1.fhir.rest.FhirService.GetResourceVersion) and related methods, unless they are removed by the [purge](/healthcare-api/docs/reference/rest/v1beta1/projects.locations.datasets.fhirStores.fhir/Resource-purge#google.cloud.healthcare.v1beta1.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/v1beta1/{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)."]]