Remove a ForgeOps deployment
This page provides instructions for removing ForgeOps deployments for the following scenarios:
Remove a Helm deployment from GKE, EKS, or AKS
- 
Set up your Kubernetes context:
- 
Set the
KUBECONFIGenvironment variable so that your Kubernetes context references the cluster in which you deployed the platform. - 
Set the active namespace in your Kubernetes context to the Kubernetes namespace in which you deployed the platform:
$ kubens my-namespace 
 - 
 - 
Remove the ForgeOps deployment:
$ cd /path/to/forgeops/charts/identity-platform $ helm uninstall identity-platform
Running helm uninstall identity-platform doesn’t delete PVCs and the
amsterjob from your namespace. - 
(Optional) To delete PVCs, use the kubectl command. For example, to delete
data-ds-idrepo-0anddata-ds-cts-0:$ kubectl delete pvc data-ds-idrepo-0 data-ds-cts-0
 - 
(Optional) To delete the
amsterjob, use the kubectl command:$ kubectl delete job amster
 - 
(Optional) Delete 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. 
 - 
 
Remove a Helm deployment from Minikube
- 
Set the active namespace in your Kubernetes context to the Kubernetes namespace in which you deployed the platform:
$ kubens my-namespace - 
Remove the ForgeOps deployment:
$ cd /path/to/forgeops/charts/identity-platform $ helm uninstall identity-platform
Running helm uninstall identity-platform doesn’t delete PVCs and the
amsterjob from your namespace. - 
(Optional) To delete PVCs, use the kubectl command. For example, to delete
data-ds-idrepo-0anddata-ds-cts-0:$ kubectl delete pvc data-ds-idrepo-0 data-ds-cts-0
 - 
(Optional) To delete the
amsterjob, use the kubectl command:$ kubectl delete job amster
 - 
(Optional) Delete your cluster:
$ minikube stop $ minikube delete
 
Remove a Kustomize deployment from GKE, EKS, or AKS
- 
Set up your Kubernetes context:
- 
Set the
KUBECONFIGenvironment variable so that your Kubernetes context references the cluster in which you deployed the platform. - 
Set the active namespace in your Kubernetes context to the Kubernetes namespace in which you deployed the platform:
$ kubens my-namespace 
 - 
 - 
Remove the ForgeOps deployment:
$ cd /path/to/forgeops/bin $ ./forgeops delete --env-name my-envRespond
Yto all theOK to delete?prompts. - 
(Optional) Delete 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. 
 - 
 
Remove a Kustomize deployment from Minikube
- 
Set the active namespace in your Kubernetes context to the Kubernetes namespace in which you deployed the platform:
$ kubens my-namespace - 
Remove the ForgeOps deployment:
$ cd /path/to/forgeops/bin $ ./forgeops delete --env-name my-envRespond
Yto all theOK to delete?prompts. - 
(Optional) Delete your cluster:
$ minikube stop $ minikube delete