import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
const response = await client.knowledgeBases.artifacts.batchDelete('knowledge_base_id', {
artifact_ids: ['string'],
});
console.log(response.artifact_ids);
{
"artifact_ids": [
"<string>"
]
}
import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
const response = await client.knowledgeBases.artifacts.batchDelete('knowledge_base_id', {
artifact_ids: ['string'],
});
console.log(response.artifact_ids);
{
"artifact_ids": [
"<string>"
]
}
Successful Response
The response is of type object
.