# How to delete a broken cluster / project?

**URL:** <https://forums.suse.com/t/how-to-delete-a-broken-cluster-project/38527>\
**Category:** SUSE Rancher Prime\
**Created:** [July 25, 2022, 1:07pm UTC](https://forums.suse.com/t/how-to-delete-a-broken-cluster-project/38527 "2022-07-25T13:07:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rhymen](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/rhymen/32/9271_2.png) [@Rhymen](https://forums.suse.com/u/Rhymen)\
**Post date:** [July 25, 2022, 1:07pm UTC](https://forums.suse.com/t/how-to-delete-a-broken-cluster-project/38527/1 "2022-07-25T13:07:50Z")

</div>

Hey guys,

my rancher is full of error logs. It tries to connect to an old broken cluster which I already removed. The web ui does not show me the cluster, but the rancher cli does. How can I delete such a cluster?

```auto
2022/07/25 12:58:06 [ERROR] error syncing 'c-hmlp5/creator-cluster-owner': handler mgmt-auth-crtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:06 [ERROR] error syncing 'c-hmlp5/crtb-6svjg': handler mgmt-auth-crtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:09 [ERROR] error syncing 'p-9bvnr/creator-project-owner': handler mgmt-auth-prtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:09 [ERROR] error syncing 'p-cw5vw/creator-project-owner': handler mgmt-auth-prtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:16 [ERROR] error syncing 'c-hmlp5/creator-cluster-owner': handler mgmt-auth-crtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:16 [ERROR] error syncing 'c-hmlp5/crtb-6svjg': handler mgmt-auth-crtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:19 [ERROR] error syncing 'p-cw5vw/creator-project-owner': handler mgmt-auth-prtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:19 [ERROR] error syncing 'p-9bvnr/creator-project-owner': handler mgmt-auth-prtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:26 [ERROR] error syncing 'c-hmlp5/creator-cluster-owner': handler mgmt-auth-crtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:26 [ERROR] error syncing 'c-hmlp5/crtb-6svjg': handler mgmt-auth-crtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:29 [ERROR] error syncing 'p-9bvnr/creator-project-owner': handler mgmt-auth-prtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:29 [ERROR] error syncing 'p-cw5vw/creator-project-owner': handler mgmt-auth-prtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:36 [ERROR] error syncing 'c-hmlp5/creator-cluster-owner': handler mgmt-auth-crtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:36 [ERROR] error syncing 'c-hmlp5/crtb-6svjg': handler mgmt-auth-crtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:39 [ERROR] error syncing 'p-cw5vw/creator-project-owner': handler mgmt-auth-prtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:39 [ERROR] error syncing 'p-9bvnr/creator-project-owner': handler mgmt-auth-prtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:46 [ERROR] error syncing 'c-hmlp5/crtb-6svjg': handler mgmt-auth-crtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:46 [ERROR] error syncing 'c-hmlp5/creator-cluster-owner': handler mgmt-auth-crtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:49 [ERROR] error syncing 'p-cw5vw/creator-project-owner': handler mgmt-auth-prtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:49 [ERROR] error syncing 'p-9bvnr/creator-project-owner': handler mgmt-auth-prtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:49 [ERROR] error syncing 'c-hmlp5/m-9kv7g': handler rke-worker-upgrader: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:56 [ERROR] error syncing 'c-hmlp5/creator-cluster-owner': handler mgmt-auth-crtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:56 [ERROR] error syncing 'c-hmlp5/crtb-6svjg': handler mgmt-auth-crtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:59 [ERROR] error syncing 'p-9bvnr/creator-project-owner': handler mgmt-auth-prtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing
2022/07/25 12:58:59 [ERROR] error syncing 'p-cw5vw/creator-project-owner': handler mgmt-auth-prtb-controller: clusters.management.cattle.io "c-hmlp5" not found, requeuing

```

 ![2022-07-25-1658754320](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/9/9885a1f06352c8e379b3014a54810cfec094dbc3.png)

If I try to switch the context of the rancher cli to one of the broken projects (number 1 and 2) I can’t execute any other command.

```auto
~/Downloads ❯ ./rancher clusters ls ✘ INT
FATA[0000] Current cluster not available, try running `rancher context switch`. Error: Bad response statusCode [404]. Status [404 Not Found]. Body: [baseType=error, code=NotFound, message=clusters.management.cattle.io "c-hmlp5" not found] from [https://rancher.domain.com/v3/clusters/c-hmlp5]
~/Downloads ❯ ./rancher projects ls
FATA[0000] Current cluster not available, try running `rancher context switch`. Error: Bad response statusCode [404]. Status [404 Not Found]. Body: [baseType=error, code=NotFound, message=clusters.management.cattle.io "c-hmlp5" not found] from [https://rancher.domain.com/v3/clusters/c-hmlp5]

```
