Uninstallation and Cleanup
Remove the Anonymization Helm release, clean up Kubernetes resources, and destroy provisioned AWS infrastructure with OpenTofu.
To remove the Anonymization service and all associated Kubernetes and AWS resources:
1. Uninstall the Helm release
# Removes all chart resources. PVC data is RETAINED by default (retentionPolicy: whenDeleted=Retain).
helm uninstall anonymization -n anon-ns
# To also delete the database PVC:
kubectl delete pvc -n anon-ns -l app.kubernetes.io/name=anonymization
Optionally, delete the namespace after the Helm release and PVCs are removed using the following command:
kubectl delete namespace anon-ns
2. Destroy OpenTofu infrastructure
Warning:
tofu destroydeletes the S3 bucket, including all stored input and output datasets. Back up any data you need before proceeding.
# Destroys the Karpenter nodes, IAM role, Pod Identity association, and S3 bucket.
tofu destroy -var="cluster_name=<CLUSTER_NAME>"
Note: By default,
tofu destroyprompts for confirmation before deleting resources. Add-auto-approveto skip the prompt.
Feedback
Was this page helpful?