Deleting a data store example
To delete a HealthLake data store you can use the AWS Management Console, AWS Management Console, AWS SDKs, and the AWS CLI.
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.
Once 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
.
To delete a HealthLake data store (AWS Management Console)
-
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.
To delete a HealthLake data store (AWS CLI and SDKs)
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)" }