# Impossible to delete Stale node?

**URL:** <https://community.netdata.cloud/t/impossible-to-delete-stale-node/5537>\
**Category:** Help\
**Tags:** cloud\
**Created:** [June 13, 2024, 1:24pm UTC](https://community.netdata.cloud/t/impossible-to-delete-stale-node/5537 "2024-06-13T13:24:57Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![luckman212](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/luckman212/32/3726_2.png) [@luckman212](https://community.netdata.cloud/u/luckman212)\
**Post date:** [June 13, 2024, 1:24pm UTC](https://community.netdata.cloud/t/impossible-to-delete-stale-node/5537/1 "2024-06-13T13:24:57Z")

</div>

I read the following

- [Can't delete stale nodes](https://community.netdata.cloud/t/cant-delete-stale-nodes/3909)
- [ability to delete unseen, stale or live nodes (other than Offline) #690](https://github.com/netdata/netdata-cloud/issues/690)

But still scratching my head.

How can I delete the stale node circled below?

 ![screenshot_69MwOLch](https://canada1.discourse-cdn.com/flex029/uploads/netdata2/original/2X/d/d4a3ff833075a29cf4c69654af19ca03f3e109a0.jpeg)

The trash can says _“Delete is disabled”_ when I hover over it

 ![screenshot_PDbHstVi](https://canada1.discourse-cdn.com/flex029/uploads/netdata2/original/2X/1/1821fb24ad1d692d5ee40d702dc8552cb7b630be.png)

---

<div class="post-metadata">

**Author:** ![luckman212](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/luckman212/32/3726_2.png) [@luckman212](https://community.netdata.cloud/u/luckman212)\
**Post date:** [June 15, 2024, 1:16pm UTC](https://community.netdata.cloud/t/impossible-to-delete-stale-node/5537/2 "2024-06-15T13:16:45Z")

</div>

[Discord thread](https://discord.com/channels/847502280503590932/1219367082991554601)

---

<div class="post-metadata">

**Author:** ![luckman212](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/luckman212/32/3726_2.png) [@luckman212](https://community.netdata.cloud/u/luckman212)\
**Post date:** [June 22, 2024, 7:13pm UTC](https://community.netdata.cloud/t/impossible-to-delete-stale-node/5537/3 "2024-06-22T19:13:04Z")

</div>

Just circling back in case this helps some poor soul…

1. From [app.netdata.cloud](https://app.netdata.cloud/), navigate to your Node list
2. Next to the name of the Stale node, click on the little `(i)` symbol _(View node information)_
3. At the very bottom of the panel that opens to the right, you will see a _"View node info in_  
_json"_ button - **click it**. You should see a message that says _“JSON copied to clipboard”_
4. Paste that into a text editor.
5. Grab the value of the `id: {...}` key. This should be a string in UUID format, e.g. `6e072590-a422-45b2-bdab-cdd3fb14ad68`
6. Connect to your parent node via SSH
7. Execute the following command:

```sh
netdatacli remove-stale-node {uuid}

```

_substituting `{uuid}` above with your real one, obviously…_

---

<div class="post-metadata">

**Author:** ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)\
**Post date:** [June 24, 2024, 3:35pm UTC](https://community.netdata.cloud/t/impossible-to-delete-stale-node/5537/4 "2024-06-24T15:35:32Z")

</div>

@luckman212 I also asked to implement the deletion of stale nodes by hostname, but this was not done. I think we need this, I think using just the uuid is unnecessarily complicated. I will keep asking!

---

<div class="post-metadata">

**Author:** ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)\
**Post date:** [December 17, 2024, 8:58pm UTC](https://community.netdata.cloud/t/impossible-to-delete-stale-node/5537/5 "2024-12-17T20:58:53Z")

</div>

> [@ilyam8](#):
>
> the deletion of stale nodes by hostname

This was implemented a while ago

```bash
remove-stale-node <node_id | machine_guid | hostname | ALL_NODES>
    Unregisters and removes a node from the cloud.

```

---

<div class="post-metadata">

**Author:** ![RandomNet](https://avatars.discourse-cdn.com/v4/letter/r/8edcca/32.png) [@RandomNet](https://community.netdata.cloud/u/RandomNet)\
**Post date:** [December 23, 2024, 12:48am UTC](https://community.netdata.cloud/t/impossible-to-delete-stale-node/5537/6 "2024-12-23T00:48:30Z")

</div>

If I do not use cloud, is it possible to delete a stale node from my local server collecting data from a few machines? I do not see such an option in `netdatacli` command.

---

<div class="post-metadata">

**Author:** ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)\
**Post date:** [December 23, 2024, 8:58am UTC](https://community.netdata.cloud/t/impossible-to-delete-stale-node/5537/7 "2024-12-23T08:58:28Z")

</div>

Yes, it is possible.

---

<div class="post-metadata">

**Author:** ![RandomNet](https://avatars.discourse-cdn.com/v4/letter/r/8edcca/32.png) [@RandomNet](https://community.netdata.cloud/u/RandomNet)\
**Post date:** [December 25, 2024, 6:53am UTC](https://community.netdata.cloud/t/impossible-to-delete-stale-node/5537/8 "2024-12-25T06:53:42Z")

</div>

how? I do not see such an option in `netdatacli` command.

---

<div class="post-metadata">

**Author:** ![car12o](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/car12o/32/3515_2.png) [@car12o](https://community.netdata.cloud/u/car12o)\
**Post date:** [December 25, 2024, 11:54am UTC](https://community.netdata.cloud/t/impossible-to-delete-stale-node/5537/9 "2024-12-25T11:54:50Z")

</div>

The option is available on the agent.

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/netdata2/original/2X/d/d7b4fd951708ebdd73a7852b95f114c492d8b12d.png)

Which version of the agent are you running?

---

<div class="post-metadata">

**Author:** ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)\
**Post date:** [December 25, 2024, 1:34pm UTC](https://community.netdata.cloud/t/impossible-to-delete-stale-node/5537/10 "2024-12-25T13:34:57Z")

</div>

@RandomNet You need to update your Netdata.

---

<div class="post-metadata">

**Author:** ![RandomNet](https://avatars.discourse-cdn.com/v4/letter/r/8edcca/32.png) [@RandomNet](https://community.netdata.cloud/u/RandomNet)\
**Post date:** [December 25, 2024, 2:15pm UTC](https://community.netdata.cloud/t/impossible-to-delete-stale-node/5537/11 "2024-12-25T14:15:13Z")

</div>

OK, now I do understand. I’m using a nixos package, and it seems that it must be compiled with `withCloud = true;` flavour to be able to have this option available, even if I do not use the cloud.

I have tested it and it works locally as it should now, thanks!
