# Postgres Operator/Cluster Deletion

**URL:** <https://forums.percona.com/t/postgres-operator-cluster-deletion/15830>\
**Category:** PostgreSQL\
**Created:** [May 26, 2022, 3:10am UTC](https://forums.percona.com/t/postgres-operator-cluster-deletion/15830 "2022-05-26T03:10:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![A\_Niu](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/a_niu/32/5518_2.png) [@A\_Niu](https://forums.percona.com/u/A_Niu)\
**Post date:** [May 26, 2022, 3:10am UTC](https://forums.percona.com/t/postgres-operator-cluster-deletion/15830/1 "2022-05-26T03:10:13Z")

</div>

Hello there,

I have 2 Postgres Operator/Cluster provisioning like below:

namespace-a: operator-a, cluster-a  
namespace-b: operator-b, cluster-b

If namespace-a was deleted, the operator-b and cluster-b were deleted as well.

namespace\_mode = “disabled”  
namespace = its own namespace

Please shed your light on this problem.

Thanks,  
Arthur

---

<div class="post-metadata">

**Author:** ![A\_Niu](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/a_niu/32/5518_2.png) [@A\_Niu](https://forums.percona.com/u/A_Niu)\
**Post date:** [May 26, 2022, 11:12am UTC](https://forums.percona.com/t/postgres-operator-cluster-deletion/15830/2 "2022-05-26T11:12:01Z")

</div>

This looks like a bug. The operation deleted all the operators with same name even they are in different namespaces.

Workaround:  
Use different name for each operator, for example, add namespace name into the operator name in the Terraform code (you can change the value if you are deploying with Helm chart):

```auto
      operator_name = "pg-operator-${var.namespace}"

```
