<p>You can see everything helm has installed with</p>
<pre><code>helm list --all-namespaces
</code></pre>
<p>Which should return something like this</p>
<pre><code>❯ helm list --all-namespaces
NAME                    NAMESPACE       REVISION        UPDATED                                 STATUS          CHART                   APP VERSION 
my-mysql-operator       mysql           1               2022-05-26 12:18:28.652497947 -0500 CDT deployed        mysql-operator-2.0.4    8.0.29-2.0.4
</code></pre>
<p>The problem here is that the resource <code>my-mysql-operator</code> is currently installed into the <code>mysql</code> namespace. In order to delete it and recreate it you can do,</p>
<pre><code>helm uninstall -n mysql my-mysql-operator
</code></pre>
<p>Then you should be able to run the above command.</p>

CC BY-SA 4.0
2022-06-03T20:16:46.920Z
2022-06-03T20:16:46.920Z
Evan Carroll
<p>When I run the helm command to install <code>my-mysql-operator</code>, I get</p>
<pre><code>helm install my-mysql-operator mysql-operator/mysql-operator --namespace mysql-operator --create-namespace
</code></pre>
<p>I get the following error,</p>
<blockquote>
<p>Error: INSTALLATION FAILED: rendered manifests contain a resource that already exists. Unable to continue with install: ClusterRole &quot;mysql-operator&quot; in namespace &quot;&quot; exists and cannot be imported into the current release: invalid ownership metadata; annotation validation error: key &quot;meta.helm.sh/release-namespace&quot; must equal &quot;mysql-operator&quot;: current value is &quot;mysql&quot;</p>
</blockquote>
<p>So so the resource exists, how do I delete it?</p>

<helm>
Helm Error: INSTALLATION FAILED : manifests contain a resource that already exists
Evan Carroll
# Helm Error: INSTALLATION FAILED : manifests contain a resource that already exists

(Asked by: username_0 on 2022-06-03)

When I run the helm command to install my-mysql-operator, I get
helm install my-mysql-operator mysql-operator/mysql-operator --namespace mysql-operator --create-namespace

I get the following error,

Error: INSTALLATION FAILED: rendered manifests contain a resource that already exists. Unable to continue with install: ClusterRole "mysql-operator" in namespace "" exists and cannot be imported into the current release: invalid ownership metadata; annotation validation error: key "meta.helm.sh/release-namespace" must equal "mysql-operator": current value is "mysql"

So so the resource exists, how do I delete it?

**Tags:** helm


---

## 1 answers

### Answer by username_0 on 2022-06-03. Score: 2 | Accepted answer

You can see everything helm has installed with
helm list --all-namespaces

Which should return something like this
❯ helm list --all-namespaces
NAME                    NAMESPACE       REVISION        UPDATED                                 STATUS          CHART                   APP VERSION 
my-mysql-operator       mysql           1               2022-05-26 12:18:28.652497947 -0500 CDT deployed        mysql-operator-2.0.4    8.0.29-2.0.4

The problem here is that the resource my-mysql-operator is currently installed into the mysql namespace. In order to delete it and recreate it you can do,
helm uninstall -n mysql my-mysql-operator

Then you should be able to run the above command.


---

