# Remove a metric

Permanently deletes an existing metric.

[endpoint]
base_url = "https://telemetry.betterstack.com"
path = "/api/v2/sources/{source_id}/metrics/{id}"
method = "DELETE"

[[path_param]]
name = "source_id"
description = "Source for which to delete a metric"
required = true
type = "integer"

[[path_param]]
name = "id"
description = "ID of the metric you want to delete"
required = true
type = "string"

[[header]]
name = "Authorization"
description = "Bearer `$TOKEN`"
required = true
type = "string"
[/endpoint]

[responses]
[[response]]
status = 204
description = '''The metric was deleted.'''

[[response]]
status = 404
description = '''The source does not have a metric with the given ID'''
body = '''{
"errors": "Resource with provided ID was not found"
}'''
[/responses]

#### Example cURL 

```shell
[label Example]
curl --request DELETE \
  --url https://telemetry.betterstack.com/api/v2/sources/123/metrics/g-456 \
  --header "Authorization: Bearer $TOKEN"
```
