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