Delete Data Source
This method allows you to delete a previously created data source using its ID.
You can obtain the ID of the data source to delete either from the API response when you created the data source, or by listing the available data sources.
Note that data sources that are linked to a knowledge base cannot be deleted. If you attempt to do so, the API will raise an error. In this case, you have to unlink the data source from all knowledge bases before being able to delete it.
data_source_id
Successful Response
{
"id": "string",
"object": "string",
"deleted": false
}
id
object
deleted
Invalid data source ID.
The data source is not (yet) ready for deletion.
Validation Error
"HTTPValidationError Object"
detail
curl -X DELETE -H 'Authorization: <value>' https://{api_host}/api/v1/control/data-sources/{data_source_id}