---
title: "Delete Custom Metric"
description: "How to call Delete Custom Metric (DELETE /api/custom-metrics/{id}) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/reference/delete_custom_metric"
revision: "2026-10-15"
operationId: "delete_custom_metric"
method: "DELETE"
endpoint: "https://a.klaviyo.com/api/custom-metrics/{id}"
authentication: "privateKey"
scopes: ["metrics:write"]
rateLimits: {"burst":"3/s","steady":"60/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
openApi: "https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/delete_custom_metric.json"
related: ["https://developers.klaviyo.com/en/reference/metrics/llms.txt","https://developers.klaviyo.com/en/reference/get_custom_metrics.md","https://developers.klaviyo.com/en/reference/get_custom_metric.md","https://developers.klaviyo.com/en/reference/create_custom_metric.md","https://developers.klaviyo.com/en/reference/update_custom_metric.md","https://developers.klaviyo.com/en/reference/get_metrics_for_custom_metric.md","https://developers.klaviyo.com/en/reference/get_metric_ids_for_custom_metric.md"]
---

# Delete Custom Metric

> This is the Markdown version of https://developers.klaviyo.com/en/reference/delete_custom_metric

```http
DELETE https://a.klaviyo.com/api/custom-metrics/{id}
```

Delete a custom metric with the given custom metric ID.

- Revision header: `revision: 2026-10-15` (required)
- Scopes: `metrics:write`
- Rate limits: Burst: `3/s`, Steady: `60/m`
- OpenAPI: [Download this endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/delete_custom_metric.json)

## Example request

### curl

```bash
curl --request DELETE \
     --url 'https://a.klaviyo.com/api/custom-metrics/925e385b52fb405715f3616c337cc65c' \
     --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
     --header 'accept: application/vnd.api+json' \
     --header 'revision: 2026-10-15'
```

### CLI

```bash
klaviyo metrics delete-custom-metric 925e385b52fb405715f3616c337cc65c
```

Sign in first with `klaviyo auth login`. [Install the Klaviyo CLI](https://developers.klaviyo.com/en/docs/klaviyo_cli.md)

### Python

```python
from klaviyo_api import KlaviyoAPI

klaviyo = KlaviyoAPI("your-private-api-key")

response = klaviyo.Metrics.delete_custom_metric("925e385b52fb405715f3616c337cc65c")
```

Install it with `pip install klaviyo-api`. [The Python SDK on GitHub](https://github.com/klaviyo/klaviyo-api-python)

### Node.js

```javascript
import { ApiKeySession, MetricsApi } from 'klaviyo-api'

const session = new ApiKeySession('your-private-api-key')
const metricsApi = new MetricsApi(session)

const response = await metricsApi.deleteCustomMetric('925e385b52fb405715f3616c337cc65c')
```

Install it with `npm install klaviyo-api`. [The Node.js SDK on GitHub](https://github.com/klaviyo/klaviyo-api-node)

### Ruby

```ruby
require 'klaviyo-api-sdk'

KlaviyoAPI.configure do |config|
  config.api_key['Klaviyo-API-Key'] = 'Klaviyo-API-Key your-private-api-key'
end

response = KlaviyoAPI::Metrics.delete_custom_metric('925e385b52fb405715f3616c337cc65c')
```

Install it with `gem install klaviyo-api-sdk`. [The Ruby SDK on GitHub](https://github.com/klaviyo/klaviyo-api-ruby)

### PHP

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');

use KlaviyoAPI\KlaviyoAPI;

$klaviyo = new KlaviyoAPI('your-private-api-key');

$response = $klaviyo->Metrics->deleteCustomMetric('925e385b52fb405715f3616c337cc65c');
```

Install it with `composer require klaviyo/api`. [The PHP SDK on GitHub](https://github.com/klaviyo/klaviyo-api-php)

## Path parameters

- `id` (string, required): The ID of the custom metric Example: `925e385b52fb405715f3616c337cc65c`

## Headers

- `revision` (string, required): API endpoint revision (format: YYYY-MM-DD[.suffix]) Default: `2026-10-15`

## Responses

### 204: Success

This response has no body.

### 4XX: Client Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```

### 5XX: Server Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```
