# A phenomenon in which inventory deleted by force is also displayed in the service name

**URL:** <https://forums.percona.com/t/a-phenomenon-in-which-inventory-deleted-by-force-is-also-displayed-in-the-service-name/21489>\
**Category:** PMM 2.x\
**Created:** [April 19, 2023, 6:33am UTC](https://forums.percona.com/t/a-phenomenon-in-which-inventory-deleted-by-force-is-also-displayed-in-the-service-name/21489 "2023-04-19T06:33:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shshwe2](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/shshwe2/32/10086_2.png) [@shshwe2](https://forums.percona.com/u/shshwe2)\
**Post date:** [April 19, 2023, 6:33am UTC](https://forums.percona.com/t/a-phenomenon-in-which-inventory-deleted-by-force-is-also-displayed-in-the-service-name/21489/1 "2023-04-19T06:33:47Z")

</div>

Hello,

1.pmm-admin add mysql --service\_name=p-b2 …  
2.pmm-admin remove mysql p-b2  
3. pmm-admin add mysql --service\_name=p-b2-1 …

I did this, but label\_value (mysql\_up, p-b2 is still exposed to Service\_name.

Any solution? When deleting p-b2, we proceeded with force deletion.

---

<div class="post-metadata">

**Author:** ![Vadim\_Yalovets](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/vadim_yalovets/32/43_2.png) [@Vadim\_Yalovets](https://forums.percona.com/u/Vadim_Yalovets)\
**Post date:** [April 19, 2023, 7:08am UTC](https://forums.percona.com/t/a-phenomenon-in-which-inventory-deleted-by-force-is-also-displayed-in-the-service-name/21489/2 "2023-04-19T07:08:27Z")

</div>

Hi @shshwe2

Time series metrics will still be some time available. You may drop all related metrics to the service by an api request to time series database.

e.g.

```auto
curl -G -u admin:admin -k 'https://172.17.0.2/prometheus/api/v1/admin/tsdb/delete_series' --data-urlencode 'match[]={ __name__ =~".*",service_name="p-b2"}'

```

---

<div class="post-metadata">

**Author:** ![shshwe2](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/shshwe2/32/10086_2.png) [@shshwe2](https://forums.percona.com/u/shshwe2)\
**Post date:** [April 19, 2023, 8:36am UTC](https://forums.percona.com/t/a-phenomenon-in-which-inventory-deleted-by-force-is-also-displayed-in-the-service-name/21489/3 "2023-04-19T08:36:20Z")

</div>

I solved  
Thank you very much
