---
title: "Delete a Usage Metric"
method: DELETE
path: "/usage-metrics/{id}"
tags: ["Usage Metrics"]
---

# Delete a Usage Metric

`DELETE /usage-metrics/{id}`

Delete a Usage Metric

## Path parameters

- `id` string, required

## Headers

- `Authorization` string, required
- `Sequence-Version` '2024-07-30'

## Response `200`

OK

- DeleteUsageMetricEndpointProductDeleteUsageMetricResponseModel
  - `id` string, required — Unique ID
  - `sequenceAccountId` string, required — Sequence Account ID
  - `name` string, required — Human-readable name for this metric, which should be unique
  - `description` string, nullable — Description for this metric
  - `metricType` 'SIMPLE' | 'GROUPED', required
  - `eventType` string, required — The `eventType` of the Usage Event to be aggregated
  - `aggregationType` 'COUNT' | 'UNIQUE' | 'SUM' | 'CUSTOM', required
  - `aggregationProperty` string, nullable — Property within the event to aggregate
  - `groupingProperty` string, nullable — Property within the event to group results by
  - `unit` string, nullable — Human-readable unit of the aggregated metric, eg. API calls)
  - `createdAt` string, nullable — Created at
  - `deletedAt` string, nullable — Created at
  - `propertyFilters` object, required — propertyFilters
  - `caseSensitive` boolean, nullable — caseSensitive
  - `propertiesToNegate` string[], nullable — propertiesToNegate
  - `parameters` CustomMetricParameter[], required — Required parameters
    - `id` string, required
    - `usageMetricId` string, required
    - `name` string, required
    - `type` 'INTEGER' | 'POSITIVE_INTEGER' | 'NUMBER' | 'POSITIVE_NUMBER', required
    - `description` string, required
    - `defaultValue` string, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `500` — Internal Server Error

## Changes

- **2026-07-20** `c48cffa2c23d` — 8 breaking
  - the response property `aggregationProperty` became nullable for the status `200`
  - the response property `caseSensitive` became nullable for the status `200`
  - the response property `createdAt` became nullable for the status `200`
  - the response property `deletedAt` became nullable for the status `200`
  - …4 more
- **2026-06-17** `55aec2d373b0` — 1 breaking, 1 warning, 1 info
  - the `propertyFilters/additionalProperties/` response's property type/format changed from ``/`` to `object`/`` for status `200`
  - deleted the `header` request parameter `sequence-version`
  - added the new optional `header` request parameter `Sequence-Version`
- **2026-06-17** `9c48c189e29d` — 1 breaking, 1 warning, 1 info
  - the `propertyFilters/additionalProperties/` response's property type/format changed from `object`/`` to ``/`` for status `200`
  - deleted the `header` request parameter `Sequence-Version`
  - added the new optional `header` request parameter `sequence-version`

[Change history](https://skmtc.dev/sequencehq/apis/sequence/changes/usage-metrics/:id/delete.md)

---

[API](https://skmtc.dev/sequencehq/apis/sequence.md) · [All operations](https://skmtc.dev/sequencehq/apis/sequence/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sequencehq/sequence/revisions/e520d2f95b7b/schema)
