# How to uninstall XtraDB operator using Helm chart? namspace hangs in terminating state

**URL:** <https://forums.percona.com/t/how-to-uninstall-xtradb-operator-using-helm-chart-namspace-hangs-in-terminating-state/12568>\
**Category:** Percona XtraDB Cluster 8.x\
**Created:** [October 13, 2021, 1:21pm UTC](https://forums.percona.com/t/how-to-uninstall-xtradb-operator-using-helm-chart-namspace-hangs-in-terminating-state/12568 "2021-10-13T13:21:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Chudinov](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/michael_chudinov/32/4732_2.png) [@Michael\_Chudinov](https://forums.percona.com/u/Michael_Chudinov)\
**Post date:** [October 13, 2021, 1:21pm UTC](https://forums.percona.com/t/how-to-uninstall-xtradb-operator-using-helm-chart-namspace-hangs-in-terminating-state/12568/1 "2021-10-13T13:21:58Z")

</div>

I do the installation using helm in `xtradb` namespace like this:

```auto
helm repo add percona https://percona.github.io/percona-helm-charts/
kubectl create namespace xtradb
helm install xtradb-operator percona/pxc-operator --namespace xtradb
helm install xtradb percona/pxc-db --namespace xtradb --set cluster.enabled=true

```

XtraDB installation was not successful. Then I want to remove both database and the operator:

```auto
helm uninstall xtradb --namespace xtradb
helm uninstall xtradb-operator --namespace xtradb

```

Then the namspace `xtradb` hangs in `terminating` state and I need to clean the namespace manually.  
Is there a better way to uninstall?

---

<div class="post-metadata">

**Author:** ![Michael\_Chudinov](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/michael_chudinov/32/4732_2.png) [@Michael\_Chudinov](https://forums.percona.com/u/Michael_Chudinov)\
**Post date:** [November 1, 2021, 9:40pm UTC](https://forums.percona.com/t/how-to-uninstall-xtradb-operator-using-helm-chart-namspace-hangs-in-terminating-state/12568/2 "2021-11-01T21:40:26Z")

</div>

Any ideas how to effectively uninstall an instance of XTraDB the including operator?

---

<div class="post-metadata">

**Author:** ![hmilkovi](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/hmilkovi/32/3034_2.png) [@hmilkovi](https://forums.percona.com/u/hmilkovi)\
**Post date:** [November 19, 2021, 8:39pm UTC](https://forums.percona.com/t/how-to-uninstall-xtradb-operator-using-helm-chart-namspace-hangs-in-terminating-state/12568/3 "2021-11-19T20:39:52Z")

</div>

Hi we had same issues, problem is with hanging PVC and PV so these need cleanup first after cluster was removed.

99% Kubernetes hangs on namespace delete is that it waits for `finalizers` .

Maybe check for stuck finalizers?
