import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
const chunk = await client.knowledgeBases.artifacts.chunks.delete(
'knowledge_base_id',
'artifact_id',
'chunk_id',
);
console.log(chunk.artifact_id);
{
"deleted": true,
"artifact_id": "<string>",
"chunk_id": "<string>"
}
import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
const chunk = await client.knowledgeBases.artifacts.chunks.delete(
'knowledge_base_id',
'artifact_id',
'chunk_id',
);
console.log(chunk.artifact_id);
{
"deleted": true,
"artifact_id": "<string>",
"chunk_id": "<string>"
}
Successful Response
The response is of type object
.