Deleting a resource using DELETE - AWS HealthLake

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.

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.