# How to remove unhealthy nodes (target) on PMM1

**URL:** <https://forums.percona.com/t/how-to-remove-unhealthy-nodes-target-on-pmm1/14837>\
**Category:** PMM 1.x\
**Tags:** pmm, percona\
**Created:** [March 22, 2022, 3:23am UTC](https://forums.percona.com/t/how-to-remove-unhealthy-nodes-target-on-pmm1/14837 "2022-03-22T03:23:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![khuent](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/khuent/32/5211_2.png) [@khuent](https://forums.percona.com/u/khuent)\
**Post date:** [March 22, 2022, 3:23am UTC](https://forums.percona.com/t/how-to-remove-unhealthy-nodes-target-on-pmm1/14837/1 "2022-03-22T03:23:46Z")

</div>

Dear Supporters,

I have problem with removing the nodes which forgot to remove pmm-client before delete it. I tried to follow this note.

> **[How to remove/deregister an instance from PMM?](https://mysql-ninjas.blogspot.com/2019/09/how-to-removederegister-instance-from.html)**
>
> We all need a monitoring system like pmm to monitor our database. Let me give a brief about how pmm works. So PMM uses prometheus ...

But i’ve just delete node on Consul only. Next step, delete node on Prometheus, i could not delete.  
My command as the screenshot below. But it failed to execute.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/2X/8/84906b2e1d152948dee22d749af842566041eab7.png)  
Would you please support me this case?  
Thank you !  
Khue

---

<div class="post-metadata">

**Author:** ![Michael\_Coburn](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/michael_coburn/32/18_2.png) [@Michael\_Coburn](https://forums.percona.com/u/Michael_Coburn)\
**Post date:** [March 22, 2022, 5:18pm UTC](https://forums.percona.com/t/how-to-remove-unhealthy-nodes-target-on-pmm1/14837/2 "2022-03-22T17:18:51Z")

</div>

Hi @khuent , thank you for posting to the Percona Forums!

The recommended way to remove a node in PMM1 is to use the `pmm-admin rm` option. Try this first, but if it fails, try then to add the service back using the same hostname and servicename, then remove it again.

> **[Percona Monitoring and Management](https://www.percona.com/doc/percona-monitoring-and-management/1.x/pmm-admin.html#removing-monitoring-services)**
>
> Percona Monitoring and Management

---

<div class="post-metadata">

**Author:** ![khuent](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/khuent/32/5211_2.png) [@khuent](https://forums.percona.com/u/khuent)\
**Post date:** [March 23, 2022, 9:54am UTC](https://forums.percona.com/t/how-to-remove-unhealthy-nodes-target-on-pmm1/14837/3 "2022-03-23T09:54:51Z")

</div>

Hi @Michael_Coburn,  
Thank you for your response.  
The first solution that you suggested, is that execute on the client host which i want to remove, right ? Or i can execute it on any host ?  
The second solution, Can i add back another with the same hostname and services, is it effect while i delete it on Consul ?  
Regards,  
Khue
