# How to delete a custom metric?

**URL:** <https://community.dynatrace.com/t/how-to-delete-a-custom-metric/37879>\
**Category:** Dashboarding\
**Tags:** dynatrace-managed, dashboards-classic\
**Created:** [January 4, 2023, 8:42pm UTC](https://community.dynatrace.com/t/how-to-delete-a-custom-metric/37879 "2023-01-04T20:42:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jigeesha\_Gupta](https://avatars.discourse-cdn.com/v4/letter/j/c4cdca/32.png) [@Jigeesha\_Gupta](https://community.dynatrace.com/u/Jigeesha_Gupta)\
**Post date:** [January 4, 2023, 8:42pm UTC](https://community.dynatrace.com/t/how-to-delete-a-custom-metric/37879/1 "2023-01-04T20:42:06Z")

</div>

Hi All,

Please advise,&nbsp;how we can delete custom metric created?

---

<div class="post-metadata">

**Author:** ![tibebe\_m\_digafe](https://avatars.discourse-cdn.com/v4/letter/t/c0e974/32.png) [@tibebe\_m\_digafe](https://community.dynatrace.com/u/tibebe_m_digafe)\
**Post date:** [January 4, 2023, 9:47pm UTC](https://community.dynatrace.com/t/how-to-delete-a-custom-metric/37879/2 "2023-01-04T21:47:24Z")

</div>

Hi,

Metrics seem to live for 5 years. I am not aware of any “Dynatrace” provided means of deleting metrics.

This post (And links in the post gives you more info, mainly on data retention)

[https://community.dynatrace.com/t5/Extensions/Data-retention-for-Custom-metrics-how-long-interval-granularity/m-p/119772](https://community.dynatrace.com/post/119772)

Thanks/ Tibebe

---

<div class="post-metadata">

**Author:** ![david\_lopes](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/david_lopes/32/27273_2.png) [@david\_lopes](https://community.dynatrace.com/u/david_lopes)\
**Post date:** [January 5, 2023, 12:40am UTC](https://community.dynatrace.com/t/how-to-delete-a-custom-metric/37879/3 "2023-01-05T00:40:42Z")

</div>

If the metric was ingested using the V2 API (MINT) please check [Metrics API - DELETE ingested metrics — Dynatrace Docs](https://www.dynatrace.com/support/help/dynatrace-api/environment-api/metric-v2/delete-metrics)

---

<div class="post-metadata">

**Author:** ![Jigeesha\_Gupta](https://avatars.discourse-cdn.com/v4/letter/j/c4cdca/32.png) [@Jigeesha\_Gupta](https://community.dynatrace.com/u/Jigeesha_Gupta)\
**Post date:** [January 5, 2023, 4:34am UTC](https://community.dynatrace.com/t/how-to-delete-a-custom-metric/37879/4 "2023-01-05T04:34:12Z")

</div>

Hi, Thanks for replying. The metric was created through Web UI. And, as it is was not created by API, so when tried deleting it through it, was unsuccessful. got 400 status

The reason for me to delete is because it’s not serving the purpose anymore, and doesn’t want it to consume DDU. Is there a way to disable it at least if not able to delete the UI created custom metrics? Please suggest.

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [January 8, 2023, 8:21pm UTC](https://community.dynatrace.com/t/how-to-delete-a-custom-metric/37879/5 "2023-01-08T20:21:14Z")

</div>

What do you mean by “it was created using Web UI”? Is this a calculated metric? Created in the multidimensional analysis? These can be easily deleted in the Web UI for calculated service metrics, application metrics or user session custom metrics.

Billing is ingest-based, so a metric won’t consume DDU if there is no new data written for the metric.

---

<div class="post-metadata">

**Author:** ![Jigeesha\_Gupta](https://avatars.discourse-cdn.com/v4/letter/j/c4cdca/32.png) [@Jigeesha\_Gupta](https://community.dynatrace.com/u/Jigeesha_Gupta)\
**Post date:** [January 9, 2023, 12:37am UTC](https://community.dynatrace.com/t/how-to-delete-a-custom-metric/37879/6 "2023-01-09T00:37:43Z")

</div>

I found it and had it deleted, thanks for your help.

---

<div class="post-metadata">

**Author:** ![v\_mayordomo](https://avatars.discourse-cdn.com/v4/letter/v/ad7895/32.png) [@v\_mayordomo](https://community.dynatrace.com/u/v_mayordomo)\
**Post date:** [September 30, 2024, 11:39am UTC](https://community.dynatrace.com/t/how-to-delete-a-custom-metric/37879/7 "2024-09-30T11:39:17Z")

</div>

Go to:

Settings --\> Server-side service monitoring -----\> Calculated service metrics
