Deleting a resource using DELETE
To delete a resource in your HealthLake data store, you must make a DELETE
HTTP request.
Example Deleting a specific Patient
resource type using a DELETE
request.
To create a DELETE
request, use the data store's endpoint. To find a data store's endpoint, look in the HealthLake console under Data Stores or by using the DescribeFHIRDatastore operation found in the AWS HealthLake API Reference.
You also must include the resource type and a valid identifier.
DELETE https://healthlake.
your-region
.amazonaws.com/datastore/your-datastore-id
/r4/Patient/2de04858-ba65-44c1-8af1-f2fe69a977d9
HTTP response
When successful, you will receive a 204
HTTP status code confirming that the resource is no longer in the data store. When a delete request fails you will receive a 400 series HTTP status code indicating why the DELETE
request failed.