Deleting a data store in HealthLake
Deleting a data store is an asynchronous operation. Once started, the status changes to Deleting. A data store maintains the status of Deleting until all the FHIR data from the date store, and underlying infrastructure necessary are removed as well.
After the data and infrastructure are removed, your HealthLake data store status changes to Deleted. After
deletion, the details about your data stores are available only by using the DescribeFHIRDataStore
and
ListFHIRDataStores
operations for seven days. After seven days, the deleted data store will not appear in the
results.
To successfully delete a data store the user, group, or role making the request must have the IAM action
glue:DeleteDatabase
added to their IAM policy. This IAM action is not included as part of the AWS
managed policy, AmazonHealthLakeFullAccess
.
You can delete a data store with the AWS Management Console, AWS SDKs, or the AWS CLI.
Deleting a data store (console)
To delete a data store with the console, choose your data store on the Data Stores page and choose delete.
To delete a HealthLake data store
-
Open the HealthLake console at https://console.aws.amazon.com//healthlake/home
. -
Open the Navigation pane (≡).
-
Then, choose Data Stores.
-
On the Data Stores page, choose the option next to the data store you want to delete.
-
Then, choose Delete
-
In the dialog box type
delete
to confirm that you want to delete the select data store. -
Then, choose Delete. Then the status of your data store will change from Active to Deleting.
Deleting a data store (AWS SDKs and AWS CLI)
You can use the code samples below to delete a HealthLake data store.
use the DeleteFHIRDataStore
command using the AWS CLI as shown in the following example. You can also
delete a data store using the delete-fhir-datastore API or the console. Deleting a data store removes all of the FHIR resource versions
contained within the data store and the underlying infrastructure. Logs related to a deleted data store are retained within the
service account in accordance with HIPAA guidelines.
aws healthlake delete-fhir-datastore --datastore-id (Data Store ID)
As shown in the following example JSON response, the status changes to "DELETING
" to confirm that the
data store and its contents are in the process of being deleted.
{ "DatastoreEndpoint": "https://healthlake.us-east-1.amazonaws.com/datastore/
eeb8005725ae22b35b4edbdc68cf2dfd
/r4/", "DatastoreArn": "arn:aws:healthlake:us-east-1:(AWS Account ID):datastore/(Datastore ID)", "DatastoreStatus": "DELETING", "DatastoreId": "(Datastore ID)" }