# Delete servers that no longer exist

**URL:** <https://forums.percona.com/t/delete-servers-that-no-longer-exist/6730>\
**Category:** PMM 1.x\
**Created:** [December 10, 2018, 7:36am UTC](https://forums.percona.com/t/delete-servers-that-no-longer-exist/6730 "2018-12-10T07:36:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RBakkum](https://avatars.discourse-cdn.com/v4/letter/r/85e7bf/32.png) [@RBakkum](https://forums.percona.com/u/RBakkum)\
**Post date:** [December 10, 2018, 7:36am UTC](https://forums.percona.com/t/delete-servers-that-no-longer-exist/6730/1 "2018-12-10T07:36:20Z")

</div>

Hi,

I’ve setup PMM for a XtraDB Cluster. This has been running fine.  
Now we upgraded a couple of servers and the new servers are reporting nicely in the PMM interface. However in the targets of Prometheus I still got 1 server that has been removed (and already removed physically) which is being seen as down. I want to remove this server from being polled, but I have no idea where to change this in the PMM docker. It most likely somewhere registered in a yaml file, but I can’t seem to find where.

Bare in mind I don’t have access to the old server anymore, so I can’t unregister it with the pmm-admin client.  
How would the best way to remove a server that doesn’t exist anymore?

---

<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:** [January 17, 2019, 4:45pm UTC](https://forums.percona.com/t/delete-servers-that-no-longer-exist/6730/2 "2019-01-17T16:45:46Z")

</div>

Hi [RBakkum](https://percona.vanillacommunities.com/profile/x/x/41329)

This process should work for you:  
[LIST=1]  
[_]Get list of nodes from Consul   
curl -s ‘[http://USER](http://USER):PASSWORD@PMM-SERVER-IP/v1/internal/ui/nodes?dc=dc1’ | python -mjson.tool | less  
[_]Remove node from Consul   
curl -s -X PUT -d ‘{“Datacenter”:“dc1”,“Node”:“NODE-NAME”}’ ‘[http://USER](http://USER):PASSWORD@PMM-SERVER-IP/v1/catalog/deregister?dc=dc1’  
[_]Remove data from Prometheus   
curl -X DELETE ‘[http://USER](http://USER):PASSWORD@PMM-SERVER-IP/prometheus/api/v1/series?match[]={instance=“NODE-NAME”}’  
[_]Get UUID for node from QAN - select node in QAN dropdown, and copy-paste node UUID from the URL:   
[url][http://PMM-SERVER-IP/qan/#/instance/46c294490cd4417e685d22196496a777/begin/2017-01-19T19:47:24/end/2017-01-19T20:47:24/[/url]](http://PMM-SERVER-IP/qan/#/instance/46c294490cd4417e685d22196496a777/begin/2017-01-19T19:47:24/end/2017-01-19T20:47:24/%5B/url%5D)  
[\*]Remove data from Query Analytics:   
curl -X “DELETE” ‘[http://PMM-SERVER-IP/qan-api/instances/46c294490cd4417e685d22196496a777](http://PMM-SERVER-IP/qan-api/instances/46c294490cd4417e685d22196496a777)’  
[/LIST]
