# Remove a collector

Permanently deletes a collector. This action is irreversible and will also remove all associated configurations and stop data collection. The underlying sources and their data will be deleted asynchronously.

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

[[path_param]]
name = "id"
description = "The unique identifier of the collector to delete."
required = true
type = "string"

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

[responses]
[[response]]
status = 204
description = "The collector was successfully marked for deletion."

[[response]]
status = 401
description = "Invalid or missing authentication token."

[[response]]
status = 404
description = "A collector with the specified ID was not found."
[/responses]

#### Example Request

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