# Remove a collector metric target

Permanently removes a collector target. The collector will stop monitoring this target on its next configuration sync.

[endpoint]
base_url = "https://telemetry.betterstack.com"
path = "/api/v1/collectors/{collector_id}/targets/{target_id}"
method = "DELETE"

[[url_param]]
name = "collector_id"
description = "The ID of the collector."
required = true
type = "string"

[[url_param]]
name = "target_id"
description = "The ID of the target."
required = true
type = "string"

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

[responses]
[[response]]
status = 204
description = "The target was removed successfully."
body = '''
'''
[[response]]
status = 404
description = "The target was not found, or belongs to a different collector or team."
body = '''
{
  "errors": "Not found"
}
'''
[/responses]

```shell
[label cURL]
curl -X DELETE "https://telemetry.betterstack.com/api/v1/collectors/1/targets/1" \
     -H "Authorization: Bearer $TOKEN"
```
