CDM removal
To remove your CDM cluster when you’re done working with it:
- 
Set the
KUBECONFIGenvironment variable so that your Kubernetes context references the cluster in which you deployed the CDM. - 
Set the active namespace in your local Kubernetes context to the namespace in which you deployed the CDM.
 - 
- 
Use the forgeops command
 - 
Use Helm (technology preview)
 
If you installed the CDM with the forgeops install command, remove all CDM artifacts with the forgeops delete command:
$ cd /path/to/forgeops/bin $ ./forgeops delete
Respond
Yto all theOK to delete?prompts.If you installed the CDM with the helm upgrade --install command, remove the CDM with the helm uninstall command:
$ cd /path/to/forgeops/charts/identity-platform $ helm uninstall identity-platform
Running helm uninstall identity-platform does not delete PVCs and the
amsterjob from your namespace.
To delete PVCs, use the kubectl command:
$ kubectl delete pvc data-ds-idrepo-0 $ kubectl delete pvc data-ds-cts-0
To delete the
amsterjob, use the kubectl command:$ kubectl delete job amster
 - 
 - 
Remove your cluster:
- 
Change to the directory in your
forgeops-extrasrepository clone that contains Terraform artifacts:$ cd /path/to/forgeops-extras/terraform
 - 
Run the tf-destroy script to create your cluster:
$ ./tf-destroy
Respond
yesto theDo you really want to destroy all resources?prompt. 
 -