---
title: "Delete a custom metric definition"
method: DELETE
path: "/api/v1/eng-intel/custom-metrics/{customMetricKey}"
tags: ["Custom Metrics"]
---

# Delete a custom metric definition

`DELETE /api/v1/eng-intel/custom-metrics/{customMetricKey}`

## Request

- Base URL: `https://api.getcortexapp.com`
- URL: `https://api.getcortexapp.com/api/v1/eng-intel/custom-metrics/{customMetricKey}`
- Auth: HTTP bearer

Removes the metric from Eng Intelligence. Its recorded data points stay out of reach, and creating the key again starts with no data. Only `PUBLIC_API` metrics can be deleted through the API. API key must have the `Configure Eng Intelligence custom metrics` permission.

## Path parameters

- `customMetricKey` string, required

## Response `204`

The custom metric was deleted

## Other responses

- `400`: The metric is a CQL metric
- `404`: No custom metric has this key
- `429`: The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.

## Changes

- **2026-11-03** `a7b058663c95`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/cortex/apis/cortex-api/changes/api/v1/eng-intel/custom-metrics/:customMetricKey/delete.md)

---

[API](https://skmtc.dev/cortex/apis/cortex-api.md) - [All operations](https://skmtc.dev/cortex/apis/cortex-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cortex/apis/cortex-api/revisions/a7b058663c95?raw)
