# Remove a warehouse source group

Deletes an existing Warehouse source group.

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

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

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

[responses]
[[response]]
status = 204
description = '''No Content'''
body = ''''''

[[response]]
status = 401
description = '''Unauthorized'''
body = '''{
  "errors":"Invalid Team API token. How to find your Team API token: https://betterstack.com/docs/logs/api/getting-started/#obtaining-a-logtail-api-token"
}'''

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

#### Example cURL

```shell
[label Example]
curl --request DELETE \
  --url https://warehouse.betterstack.com/api/v1/source-groups/12345 \
  --header "Authorization: Bearer $TOKEN"
```
