Delete Data Source

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.

Request
URI
DELETE
https://{api_host}/api/v1/control/data-sources/{data_source_id}
COPY
Path Parameters
string
data_source_id
Required

data_source_id


Authentication
This operation uses the following authentication methods.
Responses
200

Successful Response

Returns DeletionStatusResponse of type(s) application/json
{
    "id": "string",
    "object": "string",
    "deleted": false
}
string As uuid As uuid
id
Required

id

string
object
Required

object

boolean
deleted
Required

deleted


404

Invalid data source ID.

Operation doesn't return any data structure

409

The data source is not (yet) ready for deletion.

Operation doesn't return any data structure

422

Validation Error

Returns HTTPValidationError of type(s) application/json
"HTTPValidationError Object"
array of object
detail
Optional

detail


Code Samples
COPY
                    curl -X DELETE -H 'Authorization: <value>' https://{api_host}/api/v1/control/data-sources/{data_source_id}