# Remove a source group

Permanently deletes an existing source group.

[endpoint]
base_url = "https://telemetry.betterstack.com"
path = "/api/v1/source-groups/{source_group_id}"
method = "DELETE"

[[path_param]]
name = "id"
description = "ID of the source group 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 source group was deleted.'''

[[response]]
status = 404
description = '''Your team has no source group 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/v1/source-groups/123 \
  --header "Authorization: Bearer $TOKEN"
```
