# Unable to remove cluster

**URL:** https://forums.suse.com/t/unable-to-remove-cluster/13032
**Category:** SUSE Rancher Prime
**Created:** [January 17, 2019, 11:07am UTC](https://forums.suse.com/t/unable-to-remove-cluster/13032 "2019-01-17T11:07:16Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![mvineza](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/mvineza/32/5427_2.png) [@mvineza](https://forums.suse.com/u/mvineza)
#### Post date: [January 17, 2019, 11:07am UTC](https://forums.suse.com/t/unable-to-remove-cluster/13032/1 "2019-01-17T11:07:16Z")

</div>

I deleted nodes inside the cluster which were provisioned using Rancher GUI (not imported). After that, I tried to delete the cluster but I was stuck with this message:

Rpc error: code = Unavailable desc = all SubConns are in TransientFailure; Removing host [10.45.20.12] from node lists; rpc error: code = Unavailable desc = all SubConns are in TransientFailure; waiting on cluster-provisioner-controller

I tried connecting to the rancher server kubernetes cluster and tried removing the namespaces associated with that cluster but still no luck.

project-8286p Terminating 180d

Did anyone experienced this? What was the fix?

Thanks…

---

<div class="post-metadata">

### Author: ![superseb](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/superseb/32/2424_2.png) [@superseb](https://forums.suse.com/u/superseb)
#### Post date: [January 17, 2019, 6:19pm UTC](https://forums.suse.com/t/unable-to-remove-cluster/13032/2 "2019-01-17T18:19:18Z")

</div>

It depends a bit on what you did exactly, how many nodes with what roles were in the cluster and what nodes did you delete? Regarding the stuck in terminating, see [https://github.com/rancher/rancher/issues/14715#issuecomment-407900343](https://github.com/rancher/rancher/issues/14715#issuecomment-407900343) and [https://rancher.com/docs/rancher/v2.x/en/admin-settings/removing-rancher/user-cluster-nodes/](https://rancher.com/docs/rancher/v2.x/en/admin-settings/removing-rancher/user-cluster-nodes/)

---

<div class="post-metadata">

### Author: ![mvineza](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/mvineza/32/5427_2.png) [@mvineza](https://forums.suse.com/u/mvineza)
#### Post date: [January 22, 2019, 8:05pm UTC](https://forums.suse.com/t/unable-to-remove-cluster/13032/3 "2019-01-22T20:05:31Z")

</div>

Hello. I deleted all 3 nodes. All of them are etcd, worker, and controlplanes.

---

<div class="post-metadata">

### Author: ![mvineza](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/mvineza/32/5427_2.png) [@mvineza](https://forums.suse.com/u/mvineza)
#### Post date: [April 19, 2019, 12:23am UTC](https://forums.suse.com/t/unable-to-remove-cluster/13032/4 "2019-04-19T00:23:58Z")

</div>

I was able to resolve it by pointing my context to the rancher server cluster end doing a “kubectl edit cluster” and replacing that cluster’s finalizers into “finalizers: []”

---

<div class="post-metadata">

### Author: ![Elan\_Hasson](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/elan_hasson/32/7996_2.png) [@Elan\_Hasson](https://forums.suse.com/u/Elan_Hasson)
#### Post date: [September 11, 2021, 4:19am UTC](https://forums.suse.com/t/unable-to-remove-cluster/13032/5 "2021-09-11T04:19:49Z")

</div>

I tried that but i get a

> { “data”: “404 page not found\n” }

---

<div class="post-metadata">

### Author: ![tbronchain](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/tbronchain/32/8011_2.png) [@tbronchain](https://forums.suse.com/u/tbronchain)
#### Post date: [September 16, 2021, 9:18am UTC](https://forums.suse.com/t/unable-to-remove-cluster/13032/6 "2021-09-16T09:18:52Z")

</div>

Having the same issue since Rancher 2.6

Can’t delete the cluster, nodes are already cleaned and removed. When trying to remove the finalizer, getting the same 404 error.

Thanks

---

<div class="post-metadata">

### Author: ![cyberfab007](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/cyberfab007/32/8037_2.png) [@cyberfab007](https://forums.suse.com/u/cyberfab007)
#### Post date: [September 23, 2021, 2:33pm UTC](https://forums.suse.com/t/unable-to-remove-cluster/13032/7 "2021-09-23T14:33:36Z")

</div>

I am having this same issue with a digital cluster

---

<div class="post-metadata">

### Author: ![abhi1693](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/abhi1693/32/8059_2.png) [@abhi1693](https://forums.suse.com/u/abhi1693)
#### Post date: [September 27, 2021, 9:02pm UTC](https://forums.suse.com/t/unable-to-remove-cluster/13032/8 "2021-09-27T21:02:43Z")

</div>

I have the same issue. I opened up case on Github but there is no response from the team [[2.6] Unable to remove cluster · Issue #34650 · rancher/rancher · GitHub](https://github.com/rancher/rancher/issues/34650)

---

<div class="post-metadata">

### Author: ![ckwadi](https://avatars.discourse-cdn.com/v4/letter/c/9de0a6/32.png) [@ckwadi](https://forums.suse.com/u/ckwadi)
#### Post date: [October 11, 2021, 7:48am UTC](https://forums.suse.com/t/unable-to-remove-cluster/13032/9 "2021-10-11T07:48:39Z")

</div>

In my case, Rancher was not deleting a cluster in broken etcd state, for days.  
What helped was removing finalizers lines from the cluster objects using the following commands:

kubectl edit cluster …  
kubectl edit clusters.management …

There are also other CRDs, but I only edited these two.

---

<div class="post-metadata">

### Author: ![nixer.comp.rancher](https://avatars.discourse-cdn.com/v4/letter/n/4bbf92/32.png) [@nixer.comp.rancher](https://forums.suse.com/u/nixer.comp.rancher)
#### Post date: [October 23, 2021, 10:43pm UTC](https://forums.suse.com/t/unable-to-remove-cluster/13032/10 "2021-10-23T22:43:17Z")

</div>

It does not work.  
I tried to create oke cluster failed, then I could not remove it.  
the version is 2.6

---

<div class="post-metadata">

### Author: ![trexmaster](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/trexmaster/32/7964_2.png) [@trexmaster](https://forums.suse.com/u/trexmaster)
#### Post date: [October 27, 2021, 1:09pm UTC](https://forums.suse.com/t/unable-to-remove-cluster/13032/11 "2021-10-27T13:09:24Z")

</div>

@ckwadi thank you, you’re reponse put me on the right track to delete a cluster that was stuck.

---

<div class="post-metadata">

### Author: ![2stacks](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/2stacks/32/5067_2.png) [@2stacks](https://forums.suse.com/u/2stacks)
#### Post date: [October 30, 2021, 3:22pm UTC](https://forums.suse.com/t/unable-to-remove-cluster/13032/12 "2021-10-30T15:22:23Z")

</div>

# RKE1

`kubectl edit clusters.rancher.cattle.io/<cluster_name>`

# RKE2

`kubectl edit clusters.management.cattle.io/<cluster_name>`

For both set `finalizers:` to `finalizers: []`

Using the Rancher GUI worked for RKE1 but gave `{ “data”: “404 page not found\n” }` for RKE2
