---
title: Delete a derived metric
description: "Delete a derived metric by name. Idempotent: returns 204 regardless of whether the derived metric existed. Requires the Manage Tags for Metrics permission."
breadcrumbs: 문서 > API > Delete a derived metric
---

> For the complete documentation index, see [llms.txt](https://dnd37xeb23o8n.cloudfront.net/stefon.simmons/docs-astro-web-10435/llms.txt).

# Delete a derived metric

## v2 (latest)

| Datadog site      | API endpoint                                                                      |
| ----------------- | --------------------------------------------------------------------------------- |
| app.datadoghq.com | DELETE https://api.datadoghq.com/api/v2/metrics/derived-metrics/{metric_name}     |
| us3.datadoghq.com | DELETE https://api.us3.datadoghq.com/api/v2/metrics/derived-metrics/{metric_name} |
| us5.datadoghq.com | DELETE https://api.us5.datadoghq.com/api/v2/metrics/derived-metrics/{metric_name} |
| app.datadoghq.eu  | DELETE https://api.datadoghq.eu/api/v2/metrics/derived-metrics/{metric_name}      |
| ap1.datadoghq.com | DELETE https://api.ap1.datadoghq.com/api/v2/metrics/derived-metrics/{metric_name} |
| ap2.datadoghq.com | DELETE https://api.ap2.datadoghq.com/api/v2/metrics/derived-metrics/{metric_name} |
| uk1.datadoghq.com | DELETE https://api.uk1.datadoghq.com/api/v2/metrics/derived-metrics/{metric_name} |
| app.ddog-gov.com  | DELETE https://api.ddog-gov.com/api/v2/metrics/derived-metrics/{metric_name}      |
| us2.ddog-gov.com  | DELETE https://api.us2.ddog-gov.com/api/v2/metrics/derived-metrics/{metric_name}  |

### Overview

Delete a derived metric by name. Idempotent: returns 204 regardless of whether the derived
metric existed. Requires the `Manage Tags for Metrics` permission.

This endpoint requires the `metric_tags_write` permission.

OAuth apps require the `metric_tags_write` authorization [scope](https://dnd37xeb23o8n.cloudfront.net/stefon.simmons/docs-astro-web-10435/ko/api/latest/scopes.md#metrics) to access this endpoint.

### Arguments

#### Path Parameters

| Field                    | Type   | Description             |
| ------------------------ | ------ | ----------------------- |
| metric_name [*required*] | string | The name of the metric. |

### Response

{% tabs %}
{% tab label="204" %}
No Content
{% /tab %}

{% tab label="400" %}
Bad Request

{% tabs %}
{% tab label="Model" %}
API error response.

| Field               | Type     | Description       |
| ------------------- | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |
{% /tab %}

{% tab label="Example" %}
```json
{
  "errors": [
    "Bad Request"
  ]
}
```
{% /tab %}
{% /tabs %}
{% /tab %}

{% tab label="429" %}
Too many requests

{% tabs %}
{% tab label="Model" %}
API error response.

| Field               | Type     | Description       |
| ------------------- | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |
{% /tab %}

{% tab label="Example" %}
```json
{
  "errors": [
    "Bad Request"
  ]
}
```
{% /tab %}
{% /tabs %}
{% /tab %}
{% /tabs %}

### Code Example

{% tabs %}
{% tab label="Curl" %}
```bash
# Path parameters
export metric_name="dist.http.endpoint.request"

# Set your Datadog site and credentials
export DD_SITE="datadoghq.com" # Or us3.datadoghq.com, us5.datadoghq.com, datadoghq.eu, ap1.datadoghq.com, ap2.datadoghq.com, uk1.datadoghq.com, ddog-gov.com, us2.ddog-gov.com
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X DELETE "https://api.${DD_SITE}/api/v2/metrics/derived-metrics/${metric_name}" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
```
{% /tab %}
{% /tabs %}
