---
title: "Delete a metric prototype"
method: DELETE
path: "/metric-prototypes/{id}"
tags: ["metric-prototypes"]
---

# Delete a metric prototype

`DELETE /metric-prototypes/{id}`

The metric prototype must belong to the current account

## Path parameters

- `id` string, required

## Response `200`

The metric prototype was successfully deleted

- MetricPrototype — State values for metric prototype
  - `default_frequency` integer — Frequency at which the value of the metrics will be populated in timeseries
  - `default_name` string
  - `description` string — Description about the metric prototype
  - `display` string — Display name of the metric prototype. If not provided it will be populated from the default name.
  - `expression` string — Computation query to calculate the value of the metric
  - `filter` union
    - string — String predicate expression involving log attributes for the specified log type
    - unknown
  - `group_by` string — An string attribute name for the specified log type that specify grouping
  - `log_type` 'cdn-logs' | 'csp-reports' | 'pageviews' | 'proxy-logs' — The type of logs from which the metric values need to be fetched
  - `href` string — A reference to this metric prototype
  - `created` string — An iso8601 formatted timestamp
  - `created_by` integer — Reference to the user that created this metric prototype

---

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