---
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

---

[API](https://skmtc.net/sequencehq/apis/sequence.md) · [All operations](https://skmtc.net/sequencehq/apis/sequence/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sequencehq/sequence/versions/cae64b02699f/schema)
