# Remove a connection

Deletes an existing ClickHouse connection.

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

[[path_param]]
name = "id"
description = "The ID of the connection to delete."
required = true
type = "string"

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

[responses]
[[response]]
status = 204
description = '''No Content on successful deletion.'''

[[response]]
status = 404
description = '''Resource with the provided ID was not found.'''
body = '''
{
  "errors": "Resource with the provided ID was not found"
}
'''
[/responses]

[note]
This API requires a [global API token](https://betterstack.com/docs/logs/api/getting-started/#get-a-global-api-token) for authentication, not a team-specific token. Include the token in the `Authorization` header.
[/note]

#### Example cURL

```shell
[label Example]
curl --request DELETE \
  --url https://telemetry.betterstack.com/api/v1/connections/123 \
  --header "Authorization: Bearer $TOKEN"
```
