import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
const genericDeleteResponse = await client.knowledgeBaseDataSources.delete('knowledge_base_data_source_id');
console.log(genericDeleteResponse.count);
{
"success": true,
"count": 123
}
Deletes a knowledge base data source
This API can be used to delete a knowledge base data source by ID. To use this API, pass in the id
that was returned from your Create Knowledge Base Data Source API call as a path parameter.
import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
const genericDeleteResponse = await client.knowledgeBaseDataSources.delete('knowledge_base_data_source_id');
console.log(genericDeleteResponse.count);
{
"success": true,
"count": 123
}
Successful Response
The response is of type object
.