# Remove an embedding

Deletes an existing embedding configuration from a Warehouse source.

[endpoint]
base_url = "https://warehouse.betterstack.com"
path = "/api/v1/sources/{source_id}/embeddings/{id}"
method = "DELETE"

[[path_param]]
name = "source_id"
description = "The ID of the Warehouse source containing the embedding configuration."
required = true
type = "string"

[[path_param]]
name = "id"
description = "The ID of the embedding configuration 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 authentication"
}'''

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

#### Example cURL

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